Package com.consol.citrus.dsl.runner
Class TestRunnerBeforeSuiteSupport
- java.lang.Object
-
- com.consol.citrus.actions.AbstractTestAction
-
- com.consol.citrus.container.AbstractActionContainer
-
- com.consol.citrus.container.AbstractSuiteActionContainer
-
- com.consol.citrus.container.SequenceBeforeSuite
-
- com.consol.citrus.dsl.runner.TestRunnerBeforeSuiteSupport
-
- All Implemented Interfaces:
Described
,Named
,Completable
,BeforeSuite
,TestActionContainer
,TestAction
,TestActorAware
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
public abstract class TestRunnerBeforeSuiteSupport extends SequenceBeforeSuite implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Adds before suite actions using Java DSL runner methods. Instances of subclasses should be added as Spring beans to application context.- Since:
- 2.6
- Author:
- Christoph Deppisch
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.consol.citrus.container.SequenceBeforeSuite
SequenceBeforeSuite.Builder
-
-
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 TestRunnerBeforeSuiteSupport()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
abstract void
beforeSuite(TestRunner runner)
Subclasses implement this method to add before suite logic.void
doExecute(TestContext context)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Sets the applicationContext property.-
Methods inherited from class com.consol.citrus.container.AbstractSuiteActionContainer
getEnv, getSuiteNames, getSystemProperties, getTestGroups, setEnv, setSuiteNames, setSystemProperties, setTestGroups, shouldExecute
-
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
execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setName
-
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.container.BeforeSuite
shouldExecute
-
Methods inherited from interface com.consol.citrus.TestAction
execute, getActor, getName, isDisabled
-
Methods inherited from interface com.consol.citrus.container.TestActionContainer
addTestAction, addTestActions, getActionCount, getActionIndex, getActions, getActiveAction, getExecutedActions, getTestAction, setActions, setActiveAction
-
-
-
-
Method Detail
-
beforeSuite
public abstract void beforeSuite(TestRunner runner)
Subclasses implement this method to add before suite logic.- Parameters:
runner
-
-
doExecute
public void doExecute(TestContext context)
- Overrides:
doExecute
in classSequenceBeforeSuite
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Sets the applicationContext property.- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Parameters:
applicationContext
-
-
-