Class CamelCaseToScreamingSnakeCaseNamingStrategy

java.lang.Object
de.floydkretschmar.fixturize.stategies.constants.CamelCaseToScreamingSnakeCaseNamingStrategy
All Implemented Interfaces:
ConstantsNamingStrategy

public class CamelCaseToScreamingSnakeCaseNamingStrategy extends Object implements ConstantsNamingStrategy
Creates a constant name by transforming the camel case field name into screaming snake case.
  • Constructor Details

    • CamelCaseToScreamingSnakeCaseNamingStrategy

      public CamelCaseToScreamingSnakeCaseNamingStrategy()
  • Method Details

    • createConstantName

      public String createConstantName(String fieldName)
      Returns a screaming snake case representation of the provided field name.
      Specified by:
      createConstantName in interface ConstantsNamingStrategy
      Parameters:
      fieldName - - that is used to create the constant name
      Returns:
      the constant nane
      Throws:
      FixtureCreationException - if the provided field name is not camel case