com.tngtech.jgiven.testng.ScenarioTest 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
package com.tngtech.jgiven.testng;
import com.tngtech.jgiven.impl.ScenarioHolder;
import org.testng.annotations.Listeners;
import com.tngtech.jgiven.base.ScenarioTestBase;
import com.tngtech.jgiven.impl.Scenario;
@Listeners( ScenarioTestListener.class )
public class ScenarioTest extends ScenarioTestBase {
@Override
public Scenario getScenario() {
return (Scenario) ScenarioHolder.get().getScenarioOfCurrentThread();
}
}