protected TestClassLoader getTestClassLoader() {
return testClassLoader;
}
private ContextManager initializeContextManager(String className, Map<String, Object> properties) {
final ContextManagerBuilder builder = new ContextManagerBuilder();
ArquillianConfig config = getConfig(className);
if (config != null) {
final DeploymentUnit deployment = config.getDeploymentUnitContext();
final Module module = deployment.getAttachment(Attachments.MODULE);
if (module != null) {
builder.add(new TCCLSetup(module.getClassLoader()));
}
builder.addAll(deployment);
}
ContextManager contextManager = builder.build();
contextManager.setup(properties);
return contextManager;
}
};
jmxTestRunner.registerMBean(mbeanServer);