mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
08.30.2013 7a6a343922a8e1c06e01da8b41ebc1a5fa97dd0e
OPENDJ-346 Consider using java.util.ServiceLoader for loading extensions and requesting transport implementations

As a consequence of fix of issue with StaticUtils#getProvider, reverted change in tests: there is no need for a specific class loader.
1 files deleted
1 files modified
67 ■■■■ changed files
opendj3/opendj-server2x-adapter/src/test/java/org/forgerock/opendj/adapter/server2x/AdaptersTestCase.java 20 ●●●●● patch | view | raw | blame | history
opendj3/opendj-server2x-adapter/src/test/java/org/forgerock/opendj/adapter/server2x/TestCaseUtils.java 47 ●●●●● patch | view | raw | blame | history
opendj3/opendj-server2x-adapter/src/test/java/org/forgerock/opendj/adapter/server2x/AdaptersTestCase.java
@@ -79,7 +79,6 @@
import org.testng.annotations.Test;
import static org.forgerock.opendj.adapter.server2x.EmbeddedServerTestCaseUtils.CONFIG_PROPERTIES;
import static org.forgerock.opendj.adapter.server2x.TestCaseUtils.getLDAPTestOptions;
/**
 * This class defines a set of tests for the Adapters.class.
@@ -96,8 +95,8 @@
    @DataProvider
    public Object[][] anonymousConnectionFactories() {
        return new Object[][] {
            { new LDAPConnectionFactory("localhost", Integer.valueOf(CONFIG_PROPERTIES.getProperty("listen-port")),
                        getLDAPTestOptions()) },
            { new LDAPConnectionFactory("localhost",
                    Integer.valueOf(CONFIG_PROPERTIES.getProperty("listen-port"))) },
            { Adapters.newAnonymousConnectionFactory() } };
    }
@@ -111,8 +110,7 @@
        return new Object[][] {
            { Connections.newAuthenticatedConnectionFactory(
                   new LDAPConnectionFactory("localhost",
                           Integer.valueOf(CONFIG_PROPERTIES.getProperty("listen-port")),
                           getLDAPTestOptions()),
                           Integer.valueOf(CONFIG_PROPERTIES.getProperty("listen-port"))),
                   Requests.newSimpleBindRequest("cn=directory manager", "password".toCharArray())) },
            { Adapters.newConnectionFactoryForUser(DN.valueOf("cn=directory manager")) } };
    }
@@ -218,8 +216,8 @@
    @Test()
    public void testSimpleLDAPConnectionFactorySimpleBind() throws ErrorResultException {
        final LDAPConnectionFactory factory =
                new LDAPConnectionFactory("localhost", Integer.valueOf(CONFIG_PROPERTIES
                        .getProperty("listen-port")), getLDAPTestOptions());
                new LDAPConnectionFactory("localhost",
                        Integer.valueOf(CONFIG_PROPERTIES.getProperty("listen-port")));
        Connection connection = null;
        try {
            connection = factory.getConnection();
@@ -244,8 +242,8 @@
    public void testLDAPSASLBind() throws NumberFormatException, GeneralSecurityException,
            ErrorResultException {
        LDAPConnectionFactory factory =
                new LDAPConnectionFactory("localhost", Integer.valueOf(CONFIG_PROPERTIES
                        .getProperty("listen-port")), getLDAPTestOptions());
                new LDAPConnectionFactory("localhost",
                        Integer.valueOf(CONFIG_PROPERTIES.getProperty("listen-port")));
        Connection connection = factory.getConnection();
        PlainSASLBindRequest request =
@@ -1022,8 +1020,8 @@
        // LDAP Connection
        final LDAPConnectionFactory factory =
                new LDAPConnectionFactory("localhost", Integer.valueOf(CONFIG_PROPERTIES
                        .getProperty("listen-port")), getLDAPTestOptions());
                new LDAPConnectionFactory("localhost",
                        Integer.valueOf(CONFIG_PROPERTIES.getProperty("listen-port")));
        Connection connection = null;
        connection = factory.getConnection();
        connection.bind("cn=Directory Manager", "password".toCharArray());
opendj3/opendj-server2x-adapter/src/test/java/org/forgerock/opendj/adapter/server2x/TestCaseUtils.java
File was deleted