java.lang.Object
net.thucydides.model.util.NameConverter
Utility class to convert test case and method names into human-readable form.
- Author:
- johnsmart
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringfilesystemSafe(String name) static StringConverts a class or method name into a human-readable sentence.static StringsplitCamelCase(String name) Inserts spaces between words in a CamelCase name.static StringstripArgumentsFrom(String methodName) static StringstripIndexesFrom(String methodName) static StringstripParenthesesFrom(String methodName) static Stringunderscore(String name) Transform a camel-case word to underscored-version.static StringwithNoArguments(String methodName) static StringwithNoIssueNumbers(String methodName)
-
Method Details
-
humanize
Converts a class or method name into a human-readable sentence.- Parameters:
name- a class or method name- Returns:
- the human-readable form
-
splitCamelCase
Inserts spaces between words in a CamelCase name.- Parameters:
name- a name in camel-case- Returns:
- the name with spaces instead of underscores
-
withNoArguments
-
withNoIssueNumbers
-
stripArgumentsFrom
-
stripIndexesFrom
-
stripParenthesesFrom
-
underscore
Transform a camel-case word to underscored-version.- Parameters:
name- name to be converted- Returns:
- a name with underscore separators
-
filesystemSafe
-