org.testmonkeys.cucumber.spring.logback.LoggerSetupSteps 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.Before;
import io.cucumber.java.Scenario;
import org.springframework.beans.factory.annotation.Autowired;
/**
* LoggerSetupSteps contains the CucumberScenarioContext initialization step that should be
* trigger before each step.
*/
public class LoggerSetupSteps {
@Autowired
private CucumberScenarioContext scenarioContext;
@Before(order = 0)
public void loggerSetup(Scenario scenario) {
scenarioContext.setCurrentScenario(scenario);
}
}