com.tngtech.jgiven.testng.SimpleScenarioTest Maven / Gradle / Ivy
package com.tngtech.jgiven.testng;
import com.tngtech.jgiven.impl.Scenario;
import com.tngtech.jgiven.impl.ScenarioHolder;
import org.testng.annotations.Listeners;
import com.tngtech.jgiven.base.SimpleScenarioTestBase;
/**
* Base class for TestNG-based scenario tests that only have a single class with step definitions.
*
* @param a class that contains the step definitions, typically inheriting from {@link com.tngtech.jgiven.Stage}
*/
@Listeners( ScenarioTestListener.class )
public class SimpleScenarioTest extends SimpleScenarioTestBase {
@Override
public Scenario getScenario() {
return (Scenario) ScenarioHolder.get().getScenarioOfCurrentThread();
}
}