com.tngtech.jgiven.junit5.ScenarioTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jgiven-junit5 Show documentation
Show all versions of jgiven-junit5 Show documentation
Module for writing JGiven tests with JUnit 5
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;
}
}