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

org.testmonkeys.cucumber.spring.logback.LoggerSetupSteps Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy