Package org.citrusframework
Class DefaultTestCaseRunner
java.lang.Object
org.citrusframework.DefaultTestCaseRunner
- All Implemented Interfaces:
org.citrusframework.GherkinTestActionRunner,org.citrusframework.TestActionRunner,org.citrusframework.TestCaseBuilder,org.citrusframework.TestCaseRunner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionDefaultTestCaseRunner(org.citrusframework.context.TestContext context) Constructor initializes a default test case with given test context.DefaultTestCaseRunner(org.citrusframework.TestCase testCase, org.citrusframework.context.TestContext context) Constructor initializes with given test case and context. -
Method Summary
Modifier and TypeMethodDescriptionorg.citrusframework.TestActionsactions()applyBehavior(org.citrusframework.TestBehavior behavior) voidorg.citrusframework.TestActionContainersvoidcreationDate(Date date) voiddescription(String description) org.citrusframework.variable.VariableExtractorsorg.citrusframework.context.TestContextorg.citrusframework.TestCaseObtains the testCase.voidvoidvoidpackageName(String packageName) org.citrusframework.message.Processors<T extends org.citrusframework.TestAction>
org.citrusframework.TestActionRunnerrun(org.citrusframework.TestActionBuilder<T> builder) voidsetTestCase(org.citrusframework.TestCase testCase) voidstart()voidstatus(org.citrusframework.TestCaseMetaInfo.Status status) voidstop()voidorg.citrusframework.validation.Validations<T> TMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.GherkinTestActionRunner
and, and, and, given, given, given, then, then, then, when, when, whenMethods inherited from interface org.citrusframework.TestActionRunner
$, $, run, run
-
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:
startin interfaceorg.citrusframework.TestCaseRunner
-
stop
public void stop()- Specified by:
stopin interfaceorg.citrusframework.TestCaseRunner
-
variable
- Specified by:
variablein interfaceorg.citrusframework.TestCaseBuilder
-
testClass
- Specified by:
testClassin interfaceorg.citrusframework.TestCaseBuilder
-
name
- Specified by:
namein interfaceorg.citrusframework.TestCaseBuilder
-
description
- Specified by:
descriptionin interfaceorg.citrusframework.TestCaseBuilder
-
author
- Specified by:
authorin interfaceorg.citrusframework.TestCaseBuilder
-
packageName
- Specified by:
packageNamein interfaceorg.citrusframework.TestCaseBuilder
-
status
public void status(org.citrusframework.TestCaseMetaInfo.Status status) - Specified by:
statusin interfaceorg.citrusframework.TestCaseBuilder
-
creationDate
- Specified by:
creationDatein interfaceorg.citrusframework.TestCaseBuilder
-
groups
- Specified by:
groupsin interfaceorg.citrusframework.TestCaseBuilder
-
actions
public org.citrusframework.TestActions actions()- Specified by:
actionsin interfaceorg.citrusframework.TestActionRunner
-
containers
public org.citrusframework.TestActionContainers containers()- Specified by:
containersin interfaceorg.citrusframework.TestActionRunner
-
validation
public org.citrusframework.validation.Validations validation()- Specified by:
validationin interfaceorg.citrusframework.TestActionRunner
-
extractor
public org.citrusframework.variable.VariableExtractors extractor()- Specified by:
extractorin interfaceorg.citrusframework.TestActionRunner
-
processor
public org.citrusframework.message.Processors processor()- Specified by:
processorin interfaceorg.citrusframework.TestActionRunner
-
run
public <T extends org.citrusframework.TestAction> org.citrusframework.TestActionRunner run(org.citrusframework.TestActionBuilder<T> builder) - Specified by:
runin interfaceorg.citrusframework.TestActionRunner
-
applyBehavior
- Specified by:
applyBehaviorin interfaceorg.citrusframework.TestActionRunner
-
getTestCase
public org.citrusframework.TestCase getTestCase()Obtains the testCase.- Specified by:
getTestCasein interfaceorg.citrusframework.TestCaseBuilder- Returns:
-
setTestCase
public void setTestCase(org.citrusframework.TestCase testCase)
-