Package org.citrusframework.container
Class AbstractTestBoundaryActionContainer
java.lang.Object
org.citrusframework.actions.AbstractTestAction
org.citrusframework.container.AbstractActionContainer
org.citrusframework.container.AbstractTestBoundaryActionContainer
- All Implemented Interfaces:
Described,Named,Completable,TestActionContainer,ReferenceResolverAware,TestAction,TestActorAware
- Direct Known Subclasses:
SequenceAfterTest,SequenceBeforeTest
public abstract class AbstractTestBoundaryActionContainer
extends AbstractActionContainer
implements ReferenceResolverAware
Abstract test action container describes methods to enable/disable container execution based on given test name, package
and test groups. This action container is typically used by before and after test action containers.
- Since:
- 2.0
-
Field Summary
Fields inherited from class org.citrusframework.container.AbstractActionContainer
actionsFields inherited from class org.citrusframework.actions.AbstractTestAction
description -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTestBoundaryActionContainer(String name, AbstractTestContainerBuilder<?, ?> builder) -
Method Summary
Modifier and TypeMethodDescriptiongetEnv()Gets the env.Gets the name pattern.Gets the package name pattern.Gets the systemProperties.Gets the test groups that restrict the container execution.voidSets the env.voidsetNamePattern(String namePattern) Sets the name pattern.voidsetPackageNamePattern(String packageNamePattern) Sets the package name pattern.voidsetReferenceResolver(ReferenceResolver referenceResolver) voidsetSystemProperties(Map<String, String> systemProperties) Sets the systemProperties.voidsetTestGroups(List<String> testGroups) Sets the test groups that restrict the container execution.booleanshouldExecute(String testName, String packageName, String[] includedGroups) Checks if this suite actions should execute according to suite name and included test groups.Methods inherited from class org.citrusframework.container.AbstractActionContainer
addTestAction, addTestAction, addTestActions, addTestActions, executeAction, getActionCount, getActionIndex, getActions, getActiveAction, getExecutedActions, getTestAction, isDone, setActions, setActiveAction, setExecutedActionMethods inherited from class org.citrusframework.actions.AbstractTestAction
doExecute, execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.TestAction
execute, getActor, getName, isDisabled
-
Constructor Details
-
AbstractTestBoundaryActionContainer
-
-
Method Details
-
shouldExecute
Checks if this suite actions should execute according to suite name and included test groups.- Parameters:
testName-packageName-includedGroups-- Returns:
-
getTestGroups
Gets the test groups that restrict the container execution.- Returns:
-
setTestGroups
Sets the test groups that restrict the container execution.- Parameters:
testGroups-
-
getNamePattern
Gets the name pattern.- Returns:
-
setNamePattern
Sets the name pattern.- Parameters:
namePattern-
-
getPackageNamePattern
Gets the package name pattern.- Returns:
-
setPackageNamePattern
Sets the package name pattern.- Parameters:
packageNamePattern-
-
getEnv
Gets the env.- Returns:
-
setEnv
Sets the env.- Parameters:
env-
-
getSystemProperties
Gets the systemProperties.- Returns:
-
setSystemProperties
Sets the systemProperties.- Parameters:
systemProperties-
-
setReferenceResolver
- Specified by:
setReferenceResolverin interfaceReferenceResolverAware
-