Class TestCaseRunnerFactory

java.lang.Object
org.citrusframework.TestCaseRunnerFactory

public class TestCaseRunnerFactory extends Object
Factory for creating TestCaseRunner instances. By default, it uses Citrus' built-in runner, but it also offers the flexibility to replace the default runner with a custom implementation. To do this, it leverages the Citrus ResourcePathTypeResolver mechanism.

To provide a custom runner, the following file needs to be added to the classpath:

'META-INF/citrus/test/runner/custom'

The specified file must define the type of TestCaseRunnerProvider responsible for delivering the custom test case runner.
Since:
4.0
See Also:
  • TestCaseRunnerProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.citrusframework.TestCaseRunner
    createRunner(org.citrusframework.context.TestContext context)
    Create a runner.
    static org.citrusframework.TestCaseRunner
    createRunner(org.citrusframework.TestCase testCase, org.citrusframework.context.TestContext context)
    Create a runner.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createRunner

      public static org.citrusframework.TestCaseRunner createRunner(org.citrusframework.context.TestContext context)
      Create a runner.
      Parameters:
      context -
      Returns:
    • createRunner

      public static org.citrusframework.TestCaseRunner createRunner(org.citrusframework.TestCase testCase, org.citrusframework.context.TestContext context)
      Create a runner.
      Parameters:
      testCase -
      context -
      Returns: