private Map<String, String> getConfiguration() { for (ExtensionDef def : descriptor.get().getExtensions()) { if (SystemProperties.EXTENSION_NAME.equalsIgnoreCase(def .getExtensionName())) { return def.getExtensionProperties(); } } return new HashMap<String, String>(); }
@Override public void fireEvent(Object event) { this.event.fire(event); } }
public TestResult invoke(TestMethodExecutor testMethodExecutor) { /* * TODO: when we fire a LocalExecutionEvent from a ContainerMethodExecutor, * both the LocalTestExecutor and RemoteTestExecutor will set the same TestResult. */ event.fire(new LocalExecutionEvent(testMethodExecutor)); return testResult.get(); } }
/** * {@inheritDoc} */ @Override protected RemoteTestScopeApplicationContext getApplicationContext() { return applicationContextInstance.get(); }
private void registerDeploymentDronePoint(DronePoint dronePoint, Object testCase) { if (deploymentDronePointsRegistry.get() == null) { deploymentDronePointsRegistry.set(injector.get().inject(new DeploymentDronePointsRegistry())); } deploymentDronePointsRegistry.get().addDronePoint(dronePoint, testCase); }
@Override public Object lookup(ArquillianResource arquillianResource, Annotation... annotations) { return sessionInstance.get(); } }
private void registerDeploymentDronePoint(DronePoint dronePoint, Object testCase) { if (deploymentDronePointsRegistry.get() == null) { deploymentDronePointsRegistry.set(injector.get().inject(new DeploymentDronePointsRegistry())); } deploymentDronePointsRegistry.get().addDronePoint(dronePoint, testCase); }
@Override public Object doLookup(ArquillianResource arquillianResource, Annotation... annotations) { return servletContextInstance.get(); } }
@Override public Object lookup(ArquillianResource resource, Annotation... qualifiers) { return response.get(); } }
@Override public ClientTestScopeApplicationContext getTestScopeApplicationContext() { return testApplicationContext.get(); } }
/** * {@inheritDoc} * @see org.jboss.arquillian.container.test.impl.enricher.resource.OperatesOnDeploymentAwareProvider#doLookup(org.jboss.arquillian.test.api.ArquillianResource, java.lang.annotation.Annotation[]) */ @Override public Object doLookup(final ArquillianResource resource, final Annotation... qualifiers) { return managementClient.get(); }
/** * {@inheritDoc} */ @Override public Object lookup(ArquillianResource resource, Annotation... annotations) { return contextInst.get(); }
@Override public Object lookup(ArquillianResource resource, Annotation... qualifiers) { return request.get(); } }
@Override public Object doLookup(ArquillianResource arquillianResource, Annotation... annotations) { return servletContextInstance.get(); } }
/** * Obtains the appropriate context for the test. Can be overriden by * enrichers for each container to provide the correct context. * * @return the test context * * @throws NamingException */ protected Context getContainerContext() throws NamingException { return contextInst.get(); }
/** * {@inheritDoc} * @see org.jboss.arquillian.container.test.impl.enricher.resource.OperatesOnDeploymentAwareProvider#doLookup(org.jboss.arquillian.test.api.ArquillianResource, java.lang.annotation.Annotation[]) */ @Override public Object doLookup(final ArquillianResource resource, final Annotation... qualifiers) { return managementClient.get(); }
/** * {@inheritDoc} */ @Override public Object lookup(ArquillianResource resource, Annotation... annotations) { return contextInst.get(); }