Class DefaultTestCaseRunner

java.lang.Object
org.citrusframework.DefaultTestCaseRunner
All Implemented Interfaces:
org.citrusframework.GherkinTestActionRunner, org.citrusframework.TestActionRunner, org.citrusframework.TestCaseBuilder, org.citrusframework.TestCaseRunner

public class DefaultTestCaseRunner extends Object implements org.citrusframework.TestCaseRunner
  • Constructor Details

    • DefaultTestCaseRunner

      public DefaultTestCaseRunner(org.citrusframework.context.TestContext context)
      Constructor initializes a default test case with given test context.
      Parameters:
      context -
    • DefaultTestCaseRunner

      public DefaultTestCaseRunner(org.citrusframework.TestCase testCase, org.citrusframework.context.TestContext context)
      Constructor initializes with given test case and context.
      Parameters:
      testCase -
      context -
  • Method Details

    • getContext

      public org.citrusframework.context.TestContext getContext()
    • start

      public void start()
      Specified by:
      start in interface org.citrusframework.TestCaseRunner
    • stop

      public void stop()
      Specified by:
      stop in interface org.citrusframework.TestCaseRunner
    • variable

      public <T> T variable(String name, T value)
      Specified by:
      variable in interface org.citrusframework.TestCaseBuilder
    • testClass

      public void testClass(Class<?> type)
      Specified by:
      testClass in interface org.citrusframework.TestCaseBuilder
    • name

      public void name(String name)
      Specified by:
      name in interface org.citrusframework.TestCaseBuilder
    • description

      public void description(String description)
      Specified by:
      description in interface org.citrusframework.TestCaseBuilder
    • author

      public void author(String author)
      Specified by:
      author in interface org.citrusframework.TestCaseBuilder
    • packageName

      public void packageName(String packageName)
      Specified by:
      packageName in interface org.citrusframework.TestCaseBuilder
    • status

      public void status(org.citrusframework.TestCaseMetaInfo.Status status)
      Specified by:
      status in interface org.citrusframework.TestCaseBuilder
    • creationDate

      public void creationDate(Date date)
      Specified by:
      creationDate in interface org.citrusframework.TestCaseBuilder
    • groups

      public void groups(String[] groups)
      Specified by:
      groups in interface org.citrusframework.TestCaseBuilder
    • actions

      public org.citrusframework.TestActions actions()
      Specified by:
      actions in interface org.citrusframework.TestActionRunner
    • containers

      public org.citrusframework.TestActionContainers containers()
      Specified by:
      containers in interface org.citrusframework.TestActionRunner
    • validation

      public org.citrusframework.validation.Validations validation()
      Specified by:
      validation in interface org.citrusframework.TestActionRunner
    • extractor

      public org.citrusframework.variable.VariableExtractors extractor()
      Specified by:
      extractor in interface org.citrusframework.TestActionRunner
    • processor

      public org.citrusframework.message.Processors processor()
      Specified by:
      processor in interface org.citrusframework.TestActionRunner
    • run

      public <T extends org.citrusframework.TestAction> org.citrusframework.TestActionRunner run(org.citrusframework.TestActionBuilder<T> builder)
      Specified by:
      run in interface org.citrusframework.TestActionRunner
    • applyBehavior

      public ApplyTestBehaviorAction.Builder applyBehavior(org.citrusframework.TestBehavior behavior)
      Specified by:
      applyBehavior in interface org.citrusframework.TestActionRunner
    • getTestCase

      public org.citrusframework.TestCase getTestCase()
      Obtains the testCase.
      Specified by:
      getTestCase in interface org.citrusframework.TestCaseBuilder
      Returns:
    • setTestCase

      public void setTestCase(org.citrusframework.TestCase testCase)