Class CurrentDateFunction
java.lang.Object
org.citrusframework.functions.core.CurrentDateFunction
- All Implemented Interfaces:
org.citrusframework.functions.Function,org.citrusframework.functions.ParameterizedFunction<CurrentDateFunction.Parameters>
public class CurrentDateFunction
extends Object
implements org.citrusframework.functions.ParameterizedFunction<CurrentDateFunction.Parameters>
Function returning the actual date as formatted string value. User specifies format string
as argument. Function also supports additional date offset in order to manipulate result date value.
-
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(CurrentDateFunction.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
-
CurrentDateFunction
public CurrentDateFunction()
-
-
Method Details
-
execute
public String execute(CurrentDateFunction.Parameters params, org.citrusframework.context.TestContext context) - Specified by:
executein interfaceorg.citrusframework.functions.ParameterizedFunction<CurrentDateFunction.Parameters>
-
getParameters
- Specified by:
getParametersin interfaceorg.citrusframework.functions.ParameterizedFunction<CurrentDateFunction.Parameters>
-