cucumber.runtime
Interface Backend


public interface Backend


Method Summary
 void buildWorld()
          Invoked before a new scenario starts.
 void disposeWorld()
          Invoked at the end of a scenario, after hooks
 String getSnippet(gherkin.formatter.model.Step step)
           
 void loadGlue(Glue glue, List<String> gluePaths)
          Invoked once before all features.
 void setUnreportedStepExecutor(UnreportedStepExecutor executor)
          invoked once, handing the backend a reference to a step executor in case the backend needs to call steps defined within other steps
 

Method Detail

loadGlue

void loadGlue(Glue glue,
              List<String> gluePaths)
Invoked once before all features. This is where stepdefs and hooks should be loaded.


setUnreportedStepExecutor

void setUnreportedStepExecutor(UnreportedStepExecutor executor)
invoked once, handing the backend a reference to a step executor in case the backend needs to call steps defined within other steps

Parameters:
executor -

buildWorld

void buildWorld()
Invoked before a new scenario starts. Implementations should do any necessary setup of new, isolated state here.


disposeWorld

void disposeWorld()
Invoked at the end of a scenario, after hooks


getSnippet

String getSnippet(gherkin.formatter.model.Step step)


Copyright © 2012. All Rights Reserved.