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 Details

    • TestExecutor

      public TestExecutor(Configuration configuration) throws IOException
      Throws:
      IOException
    • TestExecutor

      public TestExecutor(Class<?>... tests) throws IOException
      Throws:
      IOException
    • TestExecutor

      public TestExecutor(org.graphwalker.core.machine.Context... contexts)
    • TestExecutor

      public TestExecutor(Collection<org.graphwalker.core.machine.Context> contexts)
  • Method Details

    • getMachine

      public org.graphwalker.core.machine.Machine getMachine()
      Specified by:
      getMachine in interface Executor
    • getMachineConfiguration

      public MachineConfiguration getMachineConfiguration()
      Specified by:
      getMachineConfiguration in interface Executor
    • execute

      public Result execute()
      Specified by:
      execute in interface Executor
    • execute

      public Result execute(boolean ignoreErrors)
      Specified by:
      execute in interface Executor
    • getResult

      public Result getResult()
      Specified by:
      getResult in interface Executor
    • isFailure

      public boolean isFailure(org.graphwalker.core.machine.Context context)
      Specified by:
      isFailure in interface Executor
    • getFailure

      public org.graphwalker.core.machine.MachineException getFailure(org.graphwalker.core.machine.Context context)
      Specified by:
      getFailure in interface Executor
    • getFailures

      public Collection<org.graphwalker.core.machine.MachineException> getFailures()
      Specified by:
      getFailures in interface Executor
    • reportResults

      public void reportResults(File file, Date startTime, Properties properties)
      Specified by:
      reportResults in interface Executor
    • update

      public void update(org.graphwalker.core.machine.Machine machine, org.graphwalker.core.model.Element element, org.graphwalker.core.event.EventType type)
      Specified by:
      update in interface org.graphwalker.core.event.Observer