Package com.consol.citrus.actions
Class SleepAction
- java.lang.Object
-
- com.consol.citrus.actions.AbstractTestAction
-
- com.consol.citrus.actions.SleepAction
-
- All Implemented Interfaces:
com.consol.citrus.common.Described
,com.consol.citrus.common.Named
,com.consol.citrus.TestAction
,com.consol.citrus.TestActorAware
public class SleepAction extends AbstractTestAction
Stop the test execution for a given amount of time.- Since:
- 2006
- Author:
- Christoph Deppisch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SleepAction.Builder
Action builder.
-
Field Summary
-
Fields inherited from class com.consol.citrus.actions.AbstractTestAction
description
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doExecute(com.consol.citrus.context.TestContext context)
Subclasses may add custom execution logic here.String
getTime()
Gets the time expression.TimeUnit
getTimeUnit()
Obtains the timeUnit.-
Methods inherited from class com.consol.citrus.actions.AbstractTestAction
execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setName
-
-
-
-
Method Detail
-
doExecute
public void doExecute(com.consol.citrus.context.TestContext context)
Description copied from class:AbstractTestAction
Subclasses may add custom execution logic here.- Specified by:
doExecute
in classAbstractTestAction
-
getTime
public String getTime()
Gets the time expression.- Returns:
- the time expression
-
getTimeUnit
public TimeUnit getTimeUnit()
Obtains the timeUnit.- Returns:
- the time unit.
-
-