sft.result.SftLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SimpleFunctionalTest Show documentation
Show all versions of SimpleFunctionalTest Show documentation
A JUnit extension to easily adopt functional testing and acceptance testing
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) {
}
}