com.tngtech.jgiven.tests.ScenarioTestForTesting Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jgiven-tests Show documentation
Show all versions of jgiven-tests Show documentation
JGiven Tests - Contains BDD tests for JGiven written in JGiven
package com.tngtech.jgiven.tests;
import com.tngtech.jgiven.impl.Scenario;
import com.tngtech.jgiven.junit.ScenarioTest;
import com.tngtech.jgiven.impl.ScenarioHolder;
public class ScenarioTestForTesting extends ScenarioTest {
@Override
public Scenario getScenario() {
if ( ScenarioHolder.get().getScenarioOfCurrentThread() != null) {
return (Scenario) ScenarioHolder.get().getScenarioOfCurrentThread();
}
return super.getScenario();
}
}