Class StringValueProvider
java.lang.Object
de.floydkretschmar.fixturize.stategies.constants.value.providers.custom.StringValueProvider
- All Implemented Interfaces:
ValueProvider
Default value provider for
String.-
Field Summary
Fields inherited from interface de.floydkretschmar.fixturize.stategies.constants.value.providers.ValueProvider
DEFAULT_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprovideValueAsString(Element field, TypeMetadata metadata) Returns the default value to use for constants of typeString.
-
Constructor Details
-
StringValueProvider
public StringValueProvider()
-
-
Method Details
-
provideValueAsString
Returns the default value to use for constants of typeString. The default value forStringconstants is the name of the field in screaming snake case with "_VALUE" appended at the end.- Specified by:
provideValueAsStringin interfaceValueProvider- Parameters:
field- - for which the value should be providedmetadata- - used for creating the fixture- Returns:
- the text representation of the constant value
-