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

sft.result.SftLogger Maven / Gradle / Ivy

The newest version!
package sft.result;

import sft.Scenario;
import sft.junit.ScenarioRunner;
import sft.junit.SftNotifier;
import sft.junit.UseCaseRunner;

import java.util.ArrayList;

public class SftLogger implements SftNotifier {

    private ArrayList scenariosFailed  = new ArrayList();
    private ArrayList scenariosSucceeded  = new ArrayList();
    private ArrayList scenariosIgnored  = new ArrayList();


    @Override
    public void fireUseCaseIgnored(UseCaseRunner useCaseRunner) {

    }

    @Override
    public void fireUseCaseStarted(UseCaseRunner useCaseRunner) {

    }

    @Override
    public void fireUseCaseFinished(UseCaseRunner useCaseRunner) {

    }

    @Override
    public void fireUseCaseContextFailed(UseCaseRunner useCaseRunner, Throwable throwable) {

    }

    @Override
    public void fireScenarioIgnored(ScenarioRunner scenario) {
        scenariosIgnored.add(scenario.scenario);
    }

    @Override
    public void fireScenarioStarted(ScenarioRunner scenario) {

    }

    @Override
    public void fireScenarioFailed(ScenarioRunner scenario, Throwable failure) {
        scenariosIgnored.add(scenario.scenario);
    }

    @Override
    public void fireScenarioFinished(ScenarioRunner scenario) {
        scenariosSucceeded.add(scenario.scenario);

    }

    @Override
    public void fireScenarioContextFailed(ScenarioRunner useCaseRunner, Throwable e) {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy