Search in sources :

Example 1 with TestClassDiscoverer

use of org.apache.openejb.arquillian.common.TestClassDiscoverer in project tomee by apache.

the class EmbeddedTomEEContainer method start.

@Override
public void start() throws LifecycleException {
    try {
        this.container.start();
        SystemInstance.get().setComponent(AdditionalBeanDiscoverer.class, new TestClassDiscoverer());
        // this property is not mandatory by default but depending the protocol it can be relevant so adding it by default
        SystemInstance.get().setProperty("org.apache.openejb.servlet.filters", ArquillianFilterRunner.class.getName() + "=/ArquillianServletRunner");
    } catch (final Exception e) {
        throw new LifecycleException("Something went wrong", e);
    }
}
Also used : LifecycleException(org.jboss.arquillian.container.spi.client.container.LifecycleException) TestClassDiscoverer(org.apache.openejb.arquillian.common.TestClassDiscoverer) LifecycleException(org.jboss.arquillian.container.spi.client.container.LifecycleException) DeploymentException(org.jboss.arquillian.container.spi.client.container.DeploymentException)

Aggregations

TestClassDiscoverer (org.apache.openejb.arquillian.common.TestClassDiscoverer)1 DeploymentException (org.jboss.arquillian.container.spi.client.container.DeploymentException)1 LifecycleException (org.jboss.arquillian.container.spi.client.container.LifecycleException)1