Package com.consol.citrus
Class AbstractTestBoundaryContainerBuilder<T extends AbstractTestBoundaryActionContainer,S extends AbstractTestBoundaryContainerBuilder<T,S>>
- java.lang.Object
-
- com.consol.citrus.AbstractTestActionBuilder<T,S>
-
- com.consol.citrus.AbstractTestContainerBuilder<T,S>
-
- com.consol.citrus.AbstractTestBoundaryContainerBuilder<T,S>
-
- All Implemented Interfaces:
com.consol.citrus.TestActionBuilder<T>
,com.consol.citrus.TestActionContainerBuilder<T,S>
- Direct Known Subclasses:
SequenceAfterTest.Builder
,SequenceBeforeTest.Builder
public abstract class AbstractTestBoundaryContainerBuilder<T extends AbstractTestBoundaryActionContainer,S extends AbstractTestBoundaryContainerBuilder<T,S>> extends AbstractTestContainerBuilder<T,S>
Abstract container builder takes care on calling the container runner when actions are placed in the container.- Author:
- Christoph Deppisch
-
-
Field Summary
-
Fields inherited from class com.consol.citrus.AbstractTestContainerBuilder
actions
-
Fields inherited from class com.consol.citrus.AbstractTestActionBuilder
self
-
-
Constructor Summary
Constructors Constructor Description AbstractTestBoundaryContainerBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
build()
S
onPackage(String packageNamePattern)
Condition on package names.S
onTestGroup(String... testGroups)
Condition on test group name.S
onTestGroups(List<String> testGroups)
Condition on test group names.S
onTests(String namePattern)
Condition on test names.S
whenEnv(String name, String value)
Condition on environment variable with value.S
whenEnv(Map<String,String> envs)
Condition on environment variables.S
whenSystemProperties(Map<String,String> systemProperties)
Condition on system properties.S
whenSystemProperty(String name, String value)
Condition on system property with value.-
Methods inherited from class com.consol.citrus.AbstractTestContainerBuilder
actions, actions, container, doBuild, getActions
-
Methods inherited from class com.consol.citrus.AbstractTestActionBuilder
actor, description, getActor, getDescription, getName, name
-
-
-
-
Method Detail
-
onTests
public S onTests(String namePattern)
Condition on test names. The before test logic will only run when this condition matches.- Parameters:
namePattern
-
-
onTestGroup
public S onTestGroup(String... testGroups)
Condition on test group name. The before test logic will only run when this condition matches.- Parameters:
testGroups
-
-
onTestGroups
public S onTestGroups(List<String> testGroups)
Condition on test group names. The before test logic will only run when this condition matches.- Parameters:
testGroups
-
-
onPackage
public S onPackage(String packageNamePattern)
Condition on package names. The before test logic will only run when this condition matches.- Parameters:
packageNamePattern
-
-
whenSystemProperty
public S whenSystemProperty(String name, String value)
Condition on system property with value. The before test logic will only run when this condition matches.- Parameters:
name
-value
-
-
whenSystemProperties
public S whenSystemProperties(Map<String,String> systemProperties)
Condition on system properties. The before test logic will only run when this condition matches.- Parameters:
systemProperties
-
-
whenEnv
public S whenEnv(String name, String value)
Condition on environment variable with value. The before test logic will only run when this condition matches.- Parameters:
name
-value
-
-
whenEnv
public S whenEnv(Map<String,String> envs)
Condition on environment variables. The before test logic will only run when this condition matches.- Parameters:
envs
-
-
build
public T build()
- Specified by:
build
in interfacecom.consol.citrus.TestActionBuilder<T extends AbstractTestBoundaryActionContainer>
- Overrides:
build
in classAbstractTestContainerBuilder<T extends AbstractTestBoundaryActionContainer,S extends AbstractTestBoundaryContainerBuilder<T,S>>
-
-