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

com.tngtech.jgiven.integration.spring.DualSpringScenarioTest Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package com.tngtech.jgiven.integration.spring;

import com.tngtech.jgiven.junit.DualScenarioTest;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;

/**
 * A variant of {@link SpringScenarioTest} works with two
 * stage type parameters instead of three.
 *
 * @param  the stage class that contains the step definitions for given and when
 * @param  the stage class that contains the step definitions for then
 */
public class DualSpringScenarioTest extends DualScenarioTest implements BeanFactoryAware {

    public void setBeanFactory( BeanFactory beanFactory ) {
        getScenario().setStageCreator( beanFactory.getBean( SpringStageCreator.class ) );
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy