Package org.graphwalker.core.machine
Class ReplayMachine
java.lang.Object
org.graphwalker.core.machine.MachineBase
org.graphwalker.core.machine.SimpleMachine
org.graphwalker.core.machine.ReplayMachine
- All Implemented Interfaces:
Observable,Machine
ReplayMachine
ReplayMachine can re-run an previous executed path.. The ReplayMachine takes a Profiler from a previous execution and will re-run that execution in the same order. The edges and vertices will called exactly the same order. If the last element of the execution is an edge, the ReplayMachine will execute the target vertex as well. A typical use case could be a test that encountered a failure, and now you want to execute that test and see iff it can reproduce that failure.- Author:
- Nils Olsson
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.graphwalker.core.machine.SimpleMachine
getNextStepMethods inherited from class org.graphwalker.core.machine.MachineBase
addObserver, deleteObserver, deleteObservers, getCurrentContext, getExceptionStrategy, getObservers, getProfiler, notifyObservers, setCurrentContext, setExceptionStrategy
-
Constructor Details
-
ReplayMachine
-
-
Method Details
-
getContexts
- Specified by:
getContextsin interfaceMachine- Overrides:
getContextsin classMachineBase
-
getNextStep
- Overrides:
getNextStepin classSimpleMachine
-
hasNextStep
public boolean hasNextStep()- Specified by:
hasNextStepin interfaceMachine- Overrides:
hasNextStepin classSimpleMachine
-