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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConstantName(String fieldName) Returns a screaming snake case representation of the provided field name.
-
Constructor Details
-
CamelCaseToScreamingSnakeCaseNamingStrategy
public CamelCaseToScreamingSnakeCaseNamingStrategy()
-
-
Method Details
-
createConstantName
Returns a screaming snake case representation of the provided field name.- Specified by:
createConstantNamein interfaceConstantsNamingStrategy- 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
-