Package com.consol.citrus
Class DefaultTestCaseRunner
- java.lang.Object
-
- com.consol.citrus.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 Summary
Constructors Constructor Description DefaultTestCaseRunner(com.consol.citrus.context.TestContext context)
Constructor initializes a default test case with given test context.DefaultTestCaseRunner(com.consol.citrus.TestCase testCase, com.consol.citrus.context.TestContext context)
Constructor initializes with given test case and context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplyTestBehaviorAction.Builder
applyBehavior(com.consol.citrus.TestBehavior behavior)
void
author(String author)
void
creationDate(Date date)
void
description(String description)
com.consol.citrus.TestCase
getTestCase()
Obtains the testCase.void
groups(String[] groups)
void
name(String name)
void
packageName(String packageName)
<T extends com.consol.citrus.TestAction>
Trun(com.consol.citrus.TestActionBuilder<T> builder)
void
start()
void
status(com.consol.citrus.TestCaseMetaInfo.Status status)
void
stop()
void
testClass(Class<?> type)
<T> T
variable(String name, T value)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
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 interfacecom.consol.citrus.TestCaseRunner
-
stop
public void stop()
- Specified by:
stop
in interfacecom.consol.citrus.TestCaseRunner
-
variable
public <T> T variable(String name, T value)
- Specified by:
variable
in interfacecom.consol.citrus.TestCaseBuilder
-
testClass
public void testClass(Class<?> type)
- Specified by:
testClass
in interfacecom.consol.citrus.TestCaseBuilder
-
name
public void name(String name)
- Specified by:
name
in interfacecom.consol.citrus.TestCaseBuilder
-
description
public void description(String description)
- Specified by:
description
in interfacecom.consol.citrus.TestCaseBuilder
-
author
public void author(String author)
- Specified by:
author
in interfacecom.consol.citrus.TestCaseBuilder
-
packageName
public void packageName(String packageName)
- Specified by:
packageName
in interfacecom.consol.citrus.TestCaseBuilder
-
status
public void status(com.consol.citrus.TestCaseMetaInfo.Status status)
- Specified by:
status
in interfacecom.consol.citrus.TestCaseBuilder
-
creationDate
public void creationDate(Date date)
- Specified by:
creationDate
in interfacecom.consol.citrus.TestCaseBuilder
-
groups
public void groups(String[] groups)
- Specified by:
groups
in interfacecom.consol.citrus.TestCaseBuilder
-
run
public <T extends com.consol.citrus.TestAction> T run(com.consol.citrus.TestActionBuilder<T> builder)
- Specified by:
run
in interfacecom.consol.citrus.TestActionRunner
-
applyBehavior
public ApplyTestBehaviorAction.Builder applyBehavior(com.consol.citrus.TestBehavior behavior)
- Specified by:
applyBehavior
in interfacecom.consol.citrus.TestActionRunner
-
getTestCase
public com.consol.citrus.TestCase getTestCase()
Obtains the testCase.- Specified by:
getTestCase
in interfacecom.consol.citrus.TestCaseBuilder
- Returns:
-
-