public static class PerformableTree.RunContext extends Object
Constructor and Description |
---|
RunContext(Configuration configuration,
InjectableStepsFactory stepsFactory,
EmbedderMonitor embedderMonitor,
MetaFilter filter,
BatchFailures failures) |
public RunContext(Configuration configuration, InjectableStepsFactory stepsFactory, EmbedderMonitor embedderMonitor, MetaFilter filter, BatchFailures failures)
public StepsContext stepsContext()
public boolean restartScenario()
public boolean restartStory()
public void currentPath(String path)
public void interruptIfCancelled() throws InterruptedException
InterruptedException
public boolean dryRun()
public Configuration configuration()
public boolean givenStory()
public String path()
public FilteredStory filter(Story story)
public MetaFilter filter()
public PerformableTree.PerformableSteps beforeOrAfterStoriesSteps(StepCollector.Stage stage)
public PerformableTree.PerformableSteps beforeOrAfterStorySteps(Story story, StepCollector.Stage stage)
public PerformableTree.PerformableSteps beforeOrAfterScenarioSteps(Meta storyAndScenarioMeta, StepCollector.Stage stage, ScenarioType type)
public PerformableTree.PerformableSteps lifecycleSteps(Lifecycle lifecycle, Meta meta, StepCollector.Stage stage)
public PerformableTree.PerformableSteps scenarioSteps(Scenario scenario, Map<String,String> parameters)
public PerformableTree.RunContext childContextFor(GivenStory givenStory)
public void cancelStory(Story story, StoryDuration storyDuration)
public boolean isCancelled(Story story)
public StoryDuration storyDuration(Story story)
public PerformableTree.State state()
public void stateIs(PerformableTree.State state)
public boolean failureOccurred()
public void resetState()
public void resetFailures()
public StoryReporter reporter()
public boolean failed(PerformableTree.State state)
public Throwable failure(PerformableTree.State state)
public void addFailure()
public void pendingSteps(List<StepCreator.PendingStep> pendingSteps)
public boolean hasPendingSteps()
public boolean isStoryPending()
public boolean hasFailed()
public PerformableTree.Status status(PerformableTree.State initial)
public MetaFilter getFilter()
public BatchFailures getFailures()
public EmbedderMonitor embedderMonitor()
Copyright © 2003–2016. All rights reserved.