com.tngtech.jgiven.junit5.DualScenarioTest Maven / Gradle / Ivy
package com.tngtech.jgiven.junit5;
import com.tngtech.jgiven.base.DualScenarioTestBase;
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 combined GIVEN and WHEN stage
* @param the THEN stage
*
* @see JGivenExtension
* @see SimpleScenarioTest
*/
@ExtendWith( JGivenExtension.class )
public class DualScenarioTest extends DualScenarioTestBase {
private Scenario scenario = createScenario();
@Override
public Scenario getScenario() {
return scenario;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy