Class DefaultTestCaseRunner

  • All Implemented Interfaces:
    com.consol.citrus.GherkinTestActionRunner, com.consol.citrus.TestActionRunner, com.consol.citrus.TestCaseBuilder, com.consol.citrus.TestCaseRunner

    public class DefaultTestCaseRunner
    extends Object
    implements com.consol.citrus.TestCaseRunner
    Author:
    Christoph Deppisch
    • Constructor Detail

      • DefaultTestCaseRunner

        public DefaultTestCaseRunner​(com.consol.citrus.context.TestContext context)
        Constructor initializes a default test case with given test context.
        Parameters:
        context -
      • DefaultTestCaseRunner

        public DefaultTestCaseRunner​(com.consol.citrus.TestCase testCase,
                                     com.consol.citrus.context.TestContext context)
        Constructor initializes with given test case and context.
        Parameters:
        testCase -
        context -
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface com.consol.citrus.TestCaseRunner
      • stop

        public void stop()
        Specified by:
        stop in interface com.consol.citrus.TestCaseRunner
      • variable

        public <T> T variable​(String name,
                              T value)
        Specified by:
        variable in interface com.consol.citrus.TestCaseBuilder
      • testClass

        public void testClass​(Class<?> type)
        Specified by:
        testClass in interface com.consol.citrus.TestCaseBuilder
      • name

        public void name​(String name)
        Specified by:
        name in interface com.consol.citrus.TestCaseBuilder
      • description

        public void description​(String description)
        Specified by:
        description in interface com.consol.citrus.TestCaseBuilder
      • author

        public void author​(String author)
        Specified by:
        author in interface com.consol.citrus.TestCaseBuilder
      • packageName

        public void packageName​(String packageName)
        Specified by:
        packageName in interface com.consol.citrus.TestCaseBuilder
      • status

        public void status​(com.consol.citrus.TestCaseMetaInfo.Status status)
        Specified by:
        status in interface com.consol.citrus.TestCaseBuilder
      • creationDate

        public void creationDate​(Date date)
        Specified by:
        creationDate in interface com.consol.citrus.TestCaseBuilder
      • groups

        public void groups​(String[] groups)
        Specified by:
        groups in interface com.consol.citrus.TestCaseBuilder
      • run

        public <T extends com.consol.citrus.TestAction> T run​(com.consol.citrus.TestActionBuilder<T> builder)
        Specified by:
        run in interface com.consol.citrus.TestActionRunner
      • applyBehavior

        public ApplyTestBehaviorAction.Builder applyBehavior​(com.consol.citrus.TestBehavior behavior)
        Specified by:
        applyBehavior in interface com.consol.citrus.TestActionRunner
      • getTestCase

        public com.consol.citrus.TestCase getTestCase()
        Obtains the testCase.
        Specified by:
        getTestCase in interface com.consol.citrus.TestCaseBuilder
        Returns: