@AfterClass public static void afterClass() throws Exception { testServer.tearDown(); }
@BeforeClass public static void beforeClass() throws Exception { CConfiguration cConf = CConfiguration.create(); cConf.set(Constants.Security.AUTH_SERVER_BIND_ADDRESS, InetAddress.getLoopbackAddress().getHostName()); cConf.set(Constants.Security.SSL.EXTERNAL_ENABLED, "false"); cConf.setInt(Constants.Security.AUTH_SERVER_BIND_PORT, 0); configuration = cConf; sConfiguration = SConfiguration.create(); ldapListenerConfig = InMemoryListenerConfig.createLDAPConfig("LDAP", InetAddress.getLoopbackAddress(), ldapPort, null); testServer = new ExternalLDAPAuthenticationServerTest(); testServer.setup(); }