RemoteConnectorServerTest.java revision 0fdda69ce3627d501e4bb3103765f676bb1ab061
public class RemoteConnectorServerTest {
private static final String DEFAULT_JDK_LOG_SPI = "org.identityconnectors.common.logging.impl.JDKLogger";
private static ConnectorServer _server;
public void beforeTest() throws Exception {
}
public void afterTest() {
stop();
}
// Work around issue 604. It seems that sometimes procrun will run
// the start method in a thread with a null context class loader.
}
}
//Hash of "Passw0rd"
//_server.awaitStop();
}
public void stop() {
// Procrun called stop() without calling main().
// Do not use a logging statement here to avoid initializing logging
// too early just because a bug in procrun.
return;
}
// Work around issue 604. It seems that sometimes procrun will run
// the start method in a thread with a null context class loader.
}
// Do not set _server to null, because that way the check in run() fails
// and we ensure that the server cannot be started twice in the same JVM.
}
return new URLClassLoader(jars.toArray(new URL[jars.size()]), ConnectorInfoManagerFactory.class.getClassLoader());
}
return null;
}
if (!dir.isDirectory()) {
}
}
}
return rv;
}
//@Test
public void activatorTest1() {
// URL root = RemoteConnectorServerTest.class.getResource("/connectors");
// Assert.assertNotNull(root);
// Map<String, Object> properties = new HashMap<String, Object>(1);
// properties.put(ConnectorInfoProviderService.PROPERTY_ORG_FORGEROCK_OPENICF_CONNECTOR_URL, root);
// ConnectorInfoProviderService instance = new ConnectorInfoProviderService();
// instance.activate(properties);
}
//@Test
public void activatorTest() throws IOException {
// URL connectorConfigurationURL = RemoteConnectorServerTest.class.getResource("/config/ConnectorInfoProviderServiceConfiguration.json");
// Assert.assertNotNull(connectorConfigurationURL);
// ObjectMapper mapper = new ObjectMapper();
// Map<String, Object> properties = mapper.readValue(connectorConfigurationURL, Map.class);
//
//
// ConnectorInfoProviderService instance = new ConnectorInfoProviderService();
// instance.activate(properties);
}
}