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

org.arquillian.cube.q.simianarmy.QOperativeSystemChaosSimianArmyCreator Maven / Gradle / Ivy

The newest version!
package org.arquillian.cube.q.simianarmy;

import org.arquillian.cube.q.api.OperativeSystemChaos;
import org.arquillian.cube.spi.CubeRegistry;
import org.jboss.arquillian.core.api.Instance;
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;
import org.jboss.arquillian.test.spi.event.suite.BeforeSuite;

public class QOperativeSystemChaosSimianArmyCreator {

    @Inject
    @ApplicationScoped
    private InstanceProducer operativeSystemChaosInstanceProducer;

    @Inject
    private Instance cubeRegistryInstance;

    public void createSimianArmyScripts(@Observes BeforeSuite event) {
        operativeSystemChaosInstanceProducer.set(new QOperativeSystemChaosSimianArmy(cubeRegistryInstance.get()));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy