Package com.consol.citrus
Interface TestCaseBuilder
-
- All Known Subinterfaces:
TestCaseRunner
public interface TestCaseBuilder- Author:
- Christoph Deppisch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidauthor(String author)Adds author to the test case.voidcreationDate(Date date)Sets the creation date.voiddescription(String description)Adds description to the test case.TestCasegetTestCase()Builds the test case.voidgroups(String[] groups)Sets the test group names for this test.voidname(String name)Set custom test case name.voidpackageName(String packageName)Sets custom package name for this test case.voidstatus(TestCaseMetaInfo.Status status)Sets test case status.voidtestClass(Class<?> type)Set test class.<T> Tvariable(String name, T value)Adds a new variable definition to the set of test variables for this test case and return its value.
-
-
-
Method Detail
-
getTestCase
TestCase getTestCase()
Builds the test case.- Returns:
-
testClass
void testClass(Class<?> type)
Set test class.- Parameters:
type-
-
name
void name(String name)
Set custom test case name.- Parameters:
name-
-
description
void description(String description)
Adds description to the test case.- Parameters:
description-
-
author
void author(String author)
Adds author to the test case.- Parameters:
author-
-
packageName
void packageName(String packageName)
Sets custom package name for this test case.- Parameters:
packageName-
-
status
void status(TestCaseMetaInfo.Status status)
Sets test case status.- Parameters:
status-
-
creationDate
void creationDate(Date date)
Sets the creation date.- Parameters:
date-
-
groups
void groups(String[] groups)
Sets the test group names for this test.
-
variable
<T> T variable(String name, T value)
Adds a new variable definition to the set of test variables for this test case and return its value.- Parameters:
name-value-- Returns:
-
-