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

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();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy