Package com.consol.citrus.container
Class AbstractTestBoundaryActionContainer
- java.lang.Object
-
- com.consol.citrus.actions.AbstractTestAction
-
- com.consol.citrus.container.AbstractActionContainer
-
- com.consol.citrus.container.AbstractTestBoundaryActionContainer
-
- All Implemented Interfaces:
com.consol.citrus.common.Described
,com.consol.citrus.common.Named
,com.consol.citrus.Completable
,com.consol.citrus.container.TestActionContainer
,com.consol.citrus.TestAction
,com.consol.citrus.TestActorAware
- Direct Known Subclasses:
SequenceAfterTest
,SequenceBeforeTest
public abstract class AbstractTestBoundaryActionContainer extends AbstractActionContainer
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
- Author:
- Christoph Deppisch
-
-
Field Summary
-
Fields inherited from class com.consol.citrus.container.AbstractActionContainer
actions, log
-
Fields inherited from class com.consol.citrus.actions.AbstractTestAction
description
-
-
Constructor Summary
Constructors Constructor Description AbstractTestBoundaryActionContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getEnv()
Gets the env.String
getNamePattern()
Gets the name pattern.String
getPackageNamePattern()
Gets the package name pattern.Map<String,String>
getSystemProperties()
Gets the systemProperties.List<String>
getTestGroups()
Gets the test groups that restrict the container execution.void
setEnv(Map<String,String> env)
Sets the env.void
setNamePattern(String namePattern)
Sets the name pattern.void
setPackageNamePattern(String packageNamePattern)
Sets the package name pattern.void
setSystemProperties(Map<String,String> systemProperties)
Sets the systemProperties.void
setTestGroups(List<String> testGroups)
Sets the test groups that restrict the container execution.boolean
shouldExecute(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 com.consol.citrus.container.AbstractActionContainer
addTestAction, addTestAction, addTestActions, addTestActions, getActionCount, getActionIndex, getActions, getActiveAction, getExecutedActions, getTestAction, isDone, setActions, setActiveAction
-
Methods inherited from class com.consol.citrus.actions.AbstractTestAction
doExecute, execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setName
-
-
-
-
Method Detail
-
shouldExecute
public boolean shouldExecute(String testName, String packageName, String[] includedGroups)
Checks if this suite actions should execute according to suite name and included test groups.- Parameters:
testName
-packageName
-includedGroups
-- Returns:
-
getTestGroups
public List<String> getTestGroups()
Gets the test groups that restrict the container execution.- Returns:
-
setTestGroups
public void setTestGroups(List<String> testGroups)
Sets the test groups that restrict the container execution.- Parameters:
testGroups
-
-
getNamePattern
public String getNamePattern()
Gets the name pattern.- Returns:
-
setNamePattern
public void setNamePattern(String namePattern)
Sets the name pattern.- Parameters:
namePattern
-
-
getPackageNamePattern
public String getPackageNamePattern()
Gets the package name pattern.- Returns:
-
setPackageNamePattern
public void setPackageNamePattern(String packageNamePattern)
Sets the package name pattern.- Parameters:
packageNamePattern
-
-
getSystemProperties
public Map<String,String> getSystemProperties()
Gets the systemProperties.- Returns:
-
-