Package org.graphwalker.java.test
Class TestExecutor
java.lang.Object
org.graphwalker.java.test.TestExecutor
- All Implemented Interfaces:
org.graphwalker.core.event.Observer,Executor
public final class TestExecutor
extends Object
implements Executor, org.graphwalker.core.event.Observer
- Author:
- Nils Olsson
-
Constructor Summary
ConstructorsConstructorDescriptionTestExecutor(Class<?>... tests) TestExecutor(Collection<org.graphwalker.core.machine.Context> contexts) TestExecutor(org.graphwalker.core.machine.Context... contexts) TestExecutor(Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionexecute()execute(boolean ignoreErrors) org.graphwalker.core.machine.MachineExceptiongetFailure(org.graphwalker.core.machine.Context context) Collection<org.graphwalker.core.machine.MachineException> org.graphwalker.core.machine.MachinebooleanisFailure(org.graphwalker.core.machine.Context context) voidreportResults(File file, Date startTime, Properties properties) voidupdate(org.graphwalker.core.machine.Machine machine, org.graphwalker.core.model.Element element, org.graphwalker.core.event.EventType type)
-
Constructor Details
-
TestExecutor
- Throws:
IOException
-
TestExecutor
- Throws:
IOException
-
TestExecutor
public TestExecutor(org.graphwalker.core.machine.Context... contexts) -
TestExecutor
-
-
Method Details
-
getMachine
public org.graphwalker.core.machine.Machine getMachine()- Specified by:
getMachinein interfaceExecutor
-
getMachineConfiguration
- Specified by:
getMachineConfigurationin interfaceExecutor
-
execute
-
execute
-
getResult
-
isFailure
public boolean isFailure(org.graphwalker.core.machine.Context context) -
getFailure
public org.graphwalker.core.machine.MachineException getFailure(org.graphwalker.core.machine.Context context) - Specified by:
getFailurein interfaceExecutor
-
getFailures
- Specified by:
getFailuresin interfaceExecutor
-
reportResults
- Specified by:
reportResultsin interfaceExecutor
-
update
public void update(org.graphwalker.core.machine.Machine machine, org.graphwalker.core.model.Element element, org.graphwalker.core.event.EventType type) - Specified by:
updatein interfaceorg.graphwalker.core.event.Observer
-