Ejemplo n.º 1
0
 private ContextManager initializeContextManager(
     final ArquillianConfig config, final Map<String, Object> properties) {
   final ContextManagerBuilder builder = new ContextManagerBuilder();
   final DeploymentUnit deployment = config.getDeploymentUnit();
   final Module module = deployment.getAttachment(Attachments.MODULE);
   if (module != null) {
     builder.add(new TCCLSetupAction(module.getClassLoader()));
   }
   builder.addAll(deployment);
   ContextManager contextManager = builder.build();
   contextManager.setup(properties);
   return contextManager;
 }