Enum WireMockHelpers
- java.lang.Object
-
- java.lang.Enum<WireMockHelpers>
-
- com.github.tomakehurst.wiremock.extension.responsetemplating.helpers.WireMockHelpers
-
- All Implemented Interfaces:
com.github.jknack.handlebars.Helper<java.lang.Object>
,java.io.Serializable
,java.lang.Comparable<WireMockHelpers>
public enum WireMockHelpers extends java.lang.Enum<WireMockHelpers> implements com.github.jknack.handlebars.Helper<java.lang.Object>
This enum is implemented similar to the StringHelpers of handlebars. It is basically a library of all available wiremock helpers
-
-
Enum Constant Summary
Enum Constants Enum Constant Description array
base64
contains
date
formData
hostname
jsonPath
matches
math
now
parseDate
parseJson
pickRandom
randomDecimal
randomInt
randomValue
range
regexExtract
size
soapXPath
trim
truncateDate
urlEncode
xPath
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WireMockHelpers
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static WireMockHelpers[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
xPath
public static final WireMockHelpers xPath
-
soapXPath
public static final WireMockHelpers soapXPath
-
jsonPath
public static final WireMockHelpers jsonPath
-
randomValue
public static final WireMockHelpers randomValue
-
hostname
public static final WireMockHelpers hostname
-
date
public static final WireMockHelpers date
-
now
public static final WireMockHelpers now
-
parseDate
public static final WireMockHelpers parseDate
-
truncateDate
public static final WireMockHelpers truncateDate
-
trim
public static final WireMockHelpers trim
-
base64
public static final WireMockHelpers base64
-
urlEncode
public static final WireMockHelpers urlEncode
-
formData
public static final WireMockHelpers formData
-
regexExtract
public static final WireMockHelpers regexExtract
-
size
public static final WireMockHelpers size
-
pickRandom
public static final WireMockHelpers pickRandom
-
randomInt
public static final WireMockHelpers randomInt
-
randomDecimal
public static final WireMockHelpers randomDecimal
-
range
public static final WireMockHelpers range
-
array
public static final WireMockHelpers array
-
parseJson
public static final WireMockHelpers parseJson
-
matches
public static final WireMockHelpers matches
-
contains
public static final WireMockHelpers contains
-
math
public static final WireMockHelpers math
-
-
Method Detail
-
values
public static WireMockHelpers[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WireMockHelpers c : WireMockHelpers.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WireMockHelpers valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-