Class RandomPatternFunction
java.lang.Object
org.citrusframework.functions.core.RandomPatternFunction
- All Implemented Interfaces:
org.citrusframework.functions.Function,org.citrusframework.functions.ParameterizedFunction<StringParameter>,StringFunction
The RandomPatternFunction generates a random string based on a provided regular expression pattern.
It uses the Generex library to generate the random string.
Note: The Generex library has limitations in its ability to generate all possible expressions from a given regular expression. It may not support certain complex regex features or produce all possible variations.
-
Nested Class Summary
Nested 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, logger, RESOURCE_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecute function with the single String parameter.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
executeMethods inherited from interface org.citrusframework.functions.StringFunction
execute
-
Constructor Details
-
RandomPatternFunction
public RandomPatternFunction()
-
-
Method Details
-
execute
Description copied from interface:StringFunctionExecute function with the single String parameter.- Specified by:
executein interfaceStringFunction
-
getParameters
- Specified by:
getParametersin interfaceorg.citrusframework.functions.ParameterizedFunction<StringParameter>- Specified by:
getParametersin interfaceStringFunction
-