All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tngtech.jgiven.tests.ScenarioTestForTesting Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy