org.testmonkeys.cucumber.spring.logback.CucumberScenarioContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-spring-logback Show documentation
Show all versions of cucumber-spring-logback Show documentation
Logback integration library for cucumber spring
package org.testmonkeys.cucumber.spring.logback;
import io.cucumber.java.Scenario;
import io.cucumber.spring.ScenarioScope;
import org.springframework.stereotype.Component;
/**
* CucumberScenarioContext is a holder for the current Cucumber Scenario object
*
* current scenario should be assigned in before hooks
*/
@Component
@ScenarioScope
public class CucumberScenarioContext {
private Scenario currentScenario;
public Scenario getCurrentScenario() {
return currentScenario;
}
public void setCurrentScenario(Scenario scenario) {
currentScenario = scenario;
}
}