Class LDAPDataConnectorParserTest
- java.lang.Object
-
- net.shibboleth.idp.attribute.resolver.spring.dc.ldap.LDAPDataConnectorParserTest
-
public class LDAPDataConnectorParserTest extends Object
Test forLDAPDataConnectorParser.
-
-
Field Summary
Fields Modifier and Type Field Description private com.unboundid.ldap.listener.InMemoryDirectoryServerdirectoryServerIn-memory directory server.private GenericApplicationContextpendingTeardownContext
-
Constructor Summary
Constructors Constructor Description LDAPDataConnectorParserTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoTest(net.shibboleth.idp.attribute.resolver.dc.ldap.impl.LDAPDataConnector dataConnector)protected net.shibboleth.idp.attribute.resolver.dc.ldap.impl.LDAPDataConnectorgetLdapDataConnector(String[] beanDefinitions)protected net.shibboleth.idp.attribute.resolver.dc.ldap.impl.LDAPDataConnectorgetLdapDataConnector(Resource properties, String[] beanDefinitions)voidhybridConfig()voidIdP338Canary()This test will fail when it is time to revert the fixes put in for https://issues.shibboleth.net/jira/browse/IDP-338.protected voidsetTestContext(GenericApplicationContext context)voidsetupDirectoryServer()Creates an UnboundID in-memory directory server.voidspringConfig()voidspringPropsConfig()voidteardownDirectoryServer()Shutdown the in-memory directory server.voidtearDownTestContext()voidv2Config()voidv2MinimalConfig()voidv2MinimalPoolConfig()voidv2NoSec()voidv2PropsConfig()voidv2ResolverOtherDups()
-
-
-
Field Detail
-
directoryServer
private com.unboundid.ldap.listener.InMemoryDirectoryServer directoryServer
In-memory directory server.
-
pendingTeardownContext
private GenericApplicationContext pendingTeardownContext
-
-
Method Detail
-
tearDownTestContext
@AfterMethod public void tearDownTestContext()
-
setTestContext
protected void setTestContext(GenericApplicationContext context)
-
setupDirectoryServer
@BeforeTest public void setupDirectoryServer() throws com.unboundid.ldap.sdk.LDAPException, GeneralSecurityException
Creates an UnboundID in-memory directory server. Leverages LDIF found in test resources.- Throws:
com.unboundid.ldap.sdk.LDAPException- if the in-memory directory server cannot be createdGeneralSecurityException- if the startTLS keystore or truststore cannot be loaded
-
teardownDirectoryServer
@AfterTest public void teardownDirectoryServer()
Shutdown the in-memory directory server.
-
springPropsConfig
public void springPropsConfig() throws Exception, net.shibboleth.idp.attribute.resolver.ResolutionException- Throws:
Exceptionnet.shibboleth.idp.attribute.resolver.ResolutionException
-
IdP338Canary
public void IdP338Canary()
This test will fail when it is time to revert the fixes put in for https://issues.shibboleth.net/jira/browse/IDP-338.
-
getLdapDataConnector
protected net.shibboleth.idp.attribute.resolver.dc.ldap.impl.LDAPDataConnector getLdapDataConnector(Resource properties, String[] beanDefinitions) throws IOException
- Throws:
IOException
-
getLdapDataConnector
protected net.shibboleth.idp.attribute.resolver.dc.ldap.impl.LDAPDataConnector getLdapDataConnector(String[] beanDefinitions) throws IOException
- Throws:
IOException
-
doTest
protected void doTest(net.shibboleth.idp.attribute.resolver.dc.ldap.impl.LDAPDataConnector dataConnector) throws net.shibboleth.idp.attribute.resolver.ResolutionException- Throws:
net.shibboleth.idp.attribute.resolver.ResolutionException
-
-