Package com.consol.citrus.junit
Class JUnit4CitrusSupport
- java.lang.Object
-
- com.consol.citrus.junit.JUnit4CitrusSupport
-
- All Implemented Interfaces:
GherkinTestActionRunner,CitrusFrameworkMethod.Runner,TestActionRunner
public class JUnit4CitrusSupport extends Object implements GherkinTestActionRunner, CitrusFrameworkMethod.Runner
- Since:
- 2.5
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description JUnit4CitrusSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends TestAction>
TestActionBuilder<T>applyBehavior(TestBehavior behavior)voidauthor(String author)voidcreationDate(Date date)voiddescription(String description)voidname(String name)protected TestContextprepareTestContext(TestContext testContext)Prepares the test context.voidrun(CitrusFrameworkMethod frameworkMethod)Reads Citrus test annotation from framework method and executes test case.<T extends TestAction>
Trun(TestActionBuilder<T> builder)voidstatus(TestCaseMetaInfo.Status status)<T> Tvariable(String name, T value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.consol.citrus.GherkinTestActionRunner
and, and, given, given, then, then, when, when
-
Methods inherited from interface com.consol.citrus.TestActionRunner
$, $, run
-
-
-
-
Field Detail
-
citrus
protected Citrus citrus
Citrus instance
-
-
Method Detail
-
run
public void run(CitrusFrameworkMethod frameworkMethod)
Description copied from interface:CitrusFrameworkMethod.RunnerReads Citrus test annotation from framework method and executes test case.- Specified by:
runin interfaceCitrusFrameworkMethod.Runner
-
prepareTestContext
protected TestContext prepareTestContext(TestContext testContext)
Prepares the test context. Provides a hook for test context modifications before the test gets executed.- Parameters:
testContext- the test context.- Returns:
- the (prepared) test context.
-
run
public <T extends TestAction> T run(TestActionBuilder<T> builder)
- Specified by:
runin interfaceTestActionRunner
-
applyBehavior
public <T extends TestAction> TestActionBuilder<T> applyBehavior(TestBehavior behavior)
- Specified by:
applyBehaviorin interfaceTestActionRunner
-
variable
public <T> T variable(String name, T value)
-
name
public void name(String name)
-
description
public void description(String description)
-
author
public void author(String author)
-
status
public void status(TestCaseMetaInfo.Status status)
-
creationDate
public void creationDate(Date date)
-
-