Class UUIDValueProvider
java.lang.Object
de.floydkretschmar.fixturize.stategies.constants.value.providers.custom.UUIDValueProvider
- All Implemented Interfaces:
ValueProvider
Default value provider for
UUID.-
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 typeUUID.
-
Constructor Details
-
UUIDValueProvider
public UUIDValueProvider()
-
-
Method Details
-
provideValueAsString
Returns the default value to use for constants of typeUUID. The default value forUUIDconstants is "java.util.UUID.fromString(uuid) where uuid is a randomly generated UUID.- 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
-