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

com.tngtech.jgiven.junit5.ScenarioTest Maven / Gradle / Ivy

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

import com.tngtech.jgiven.base.ScenarioTestBase;
import com.tngtech.jgiven.impl.Scenario;
import org.junit.jupiter.api.extension.ExtendWith;


/**
 * Convenience test base class for writing JGiven scenarios with JUnit 5.
 * If you only have one stage class you can also use the {@link SimpleScenarioTest} class.
 * If you don't want to inherit from any class you can just use the {@link JGivenExtension}
 * directly.
 *
 * @param  the GIVEN stage
 * @param  the WHEN stage
 * @param  the THEN stage
 *
 * @see JGivenExtension
 * @see SimpleScenarioTest
 */
@ExtendWith( JGivenExtension.class )
public class ScenarioTest extends ScenarioTestBase {

    private Scenario scenario = createScenario();

    @Override
    public Scenario getScenario() {
        return scenario;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy