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

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

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

import cucumber.runtime.arquillian.config.CucumberConfiguration;
import org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor;
import org.jboss.arquillian.config.descriptor.api.ExtensionDef;
import org.jboss.arquillian.core.api.InstanceProducer;
import org.jboss.arquillian.core.api.annotation.ApplicationScoped;
import org.jboss.arquillian.core.api.annotation.Inject;
import org.jboss.arquillian.core.api.annotation.Observes;

public class CucumberConfigurationProducer {
    @Inject @ApplicationScoped
    private InstanceProducer configurationProducer;

    public void findConfiguration(final @Observes ArquillianDescriptor descriptor) {
        final ExtensionDef cucumberDef = descriptor.extension("cucumber");
        configurationProducer.set(CucumberConfiguration.from(cucumberDef.getExtensionProperties()));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy