Class ChangeDateFunction
java.lang.Object
org.citrusframework.functions.core.ChangeDateFunction
- All Implemented Interfaces:
org.citrusframework.functions.Function,org.citrusframework.functions.ParameterizedFunction<ChangeDateFunction.Parameters>
public class ChangeDateFunction
extends Object
implements org.citrusframework.functions.ParameterizedFunction<ChangeDateFunction.Parameters>
Function changes given date value by adding/subtracting day/month/year/hour/minute
offset values. Class uses special date format to parse date string to Calendar instance.
- Since:
- 1.3.1
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.citrusframework.functions.ParameterizedFunction
org.citrusframework.functions.ParameterizedFunction.FunctionParameters -
Field Summary
Fields inherited from interface org.citrusframework.functions.Function
functions, RESOURCE_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ChangeDateFunction.Parameters params, org.citrusframework.context.TestContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.functions.ParameterizedFunction
execute
-
Constructor Details
-
ChangeDateFunction
public ChangeDateFunction()
-
-
Method Details
-
execute
public String execute(ChangeDateFunction.Parameters params, org.citrusframework.context.TestContext context) - Specified by:
executein interfaceorg.citrusframework.functions.ParameterizedFunction<ChangeDateFunction.Parameters>
-
getParameters
- Specified by:
getParametersin interfaceorg.citrusframework.functions.ParameterizedFunction<ChangeDateFunction.Parameters>
-