All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cucumber.runtime.arquillian.client.CucumberClientExtension Maven / Gradle / Ivy

There is a newer version: 1.6.7
Show newest version
package cucumber.runtime.arquillian.client;

import cucumber.runtime.arquillian.lifecycle.CucumberLifecycle;
import cucumber.runtime.arquillian.reporter.CucumberReporter;
import cucumber.runtime.arquillian.shared.EventHelper;
import cucumber.runtime.arquillian.shared.PersistenceExtensionIntegration;
import org.jboss.arquillian.container.test.spi.client.deployment.ApplicationArchiveProcessor;
import org.jboss.arquillian.core.spi.LoadableExtension;

public class CucumberClientExtension implements LoadableExtension {
    @Override
    public void register(final ExtensionBuilder builder) {
        builder.service(ApplicationArchiveProcessor.class, CucumberArchiveProcessor.class)
            .observer(CucumberLifecycle.class)
            .observer(CucumberConfigurationProducer.class)
            .observer(CucumberReporter.class)
            .observer(EventHelper.class);
        if (PersistenceExtensionIntegration.isOn()) {
            builder.observer(PersistenceExtensionIntegration.Observer.class);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy