Class LDAPDataConnectorParserTest


  • public class LDAPDataConnectorParserTest
    extends Object
    Test for LDAPDataConnectorParser.
    • Field Detail

      • directoryServer

        private com.unboundid.ldap.listener.InMemoryDirectoryServer directoryServer
        In-memory directory server.
    • Constructor Detail

      • LDAPDataConnectorParserTest

        public LDAPDataConnectorParserTest()
    • Method Detail

      • tearDownTestContext

        @AfterMethod
        public void tearDownTestContext()
      • 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 created
        GeneralSecurityException - if the startTLS keystore or truststore cannot be loaded
      • teardownDirectoryServer

        @AfterTest
        public void teardownDirectoryServer()
        Shutdown the in-memory directory server.
      • v2ResolverOtherDups

        public void v2ResolverOtherDups()
                                 throws Exception
        Throws:
        Exception
      • v2MinimalPoolConfig

        public void v2MinimalPoolConfig()
                                 throws Exception
        Throws:
        Exception
      • springPropsConfig

        public void springPropsConfig()
                               throws Exception,
                                      net.shibboleth.idp.attribute.resolver.ResolutionException
        Throws:
        Exception
        net.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