com.tngtech.jgiven.testng.SimpleScenarioTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jgiven-testng Show documentation
Show all versions of jgiven-testng Show documentation
Module to write JGiven tests with TestNG
The newest version!
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();
}
}