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

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

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

import com.tngtech.jgiven.impl.Scenario;
import com.tngtech.jgiven.junit.JGivenMethodRule;
import com.tngtech.jgiven.junit.JGivenClassRule;
import org.junit.ClassRule;
import org.junit.Rule;

/**
 * A variant of {@link SpringRuleScenarioTest} works with a single
 * stage type parameter instead of three.
 *
 * @param  the stage class that contains the step definitions
 *
 * @since 0.13.0
 */
public class SimpleSpringRuleScenarioTest extends InternalSimpleSpringScenarioTest {

    @ClassRule
    public static final JGivenClassRule writerRule = new JGivenClassRule();

    @Rule
    public final JGivenMethodRule scenarioRule = new JGivenMethodRule( createScenario() );

    @Override
    public Scenario getScenario() {
        return (Scenario) scenarioRule.getScenario();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy