public void afterScenario() {
   notifier.fireTestFinished(currentScenario);
   if (scenarioDescriptions.hasNext()) {
     currentScenario = scenarioDescriptions.next();
     finishedDescriptions.clear();
   }
 }
 public void successful(String step) {
   currentStep = getStepDescription(step);
   notifier.fireTestStarted(currentStep);
   notifier.fireTestFinished(currentStep);
   finishedDescriptions.add(currentStep);
 }
 public void failed(String step, Throwable e) {
   currentStep = getStepDescription(step);
   notifier.fireTestStarted(currentStep);
   notifier.fireTestFailure(new Failure(currentStep, e));
   finishedDescriptions.add(currentStep);
 }
 public void beforeStory(StoryDefinition story, boolean embeddedStory) {
   notifier.fireTestStarted(storyDescription);
 }
 public void beforeScenario(String title) {
   notifier.fireTestStarted(currentScenario);
 }
 public void afterStory(boolean embeddedStory) {
   notifier.fireTestFinished(storyDescription);
 }