java.lang.Object
de.floydkretschmar.fixturize.stategies.constants.value.providers.custom.StringValueProvider
All Implemented Interfaces:
ValueProvider

public class StringValueProvider extends Object implements ValueProvider
Default value provider for String.
  • Constructor Details

    • StringValueProvider

      public StringValueProvider()
  • Method Details

    • provideValueAsString

      public String provideValueAsString(Element field, TypeMetadata metadata)
      Returns the default value to use for constants of type String. The default value for String constants is the name of the field in screaming snake case with "_VALUE" appended at the end.
      Specified by:
      provideValueAsString in interface ValueProvider
      Parameters:
      field - - for which the value should be provided
      metadata - - used for creating the fixture
      Returns:
      the text representation of the constant value