Package mocka.generator.primitive
Class CharacterGenerator
-
Field Summary
Fields inherited from class mocka.generator.AbstractGenerator
key, randomProvider, type -
Method Summary
Modifier and TypeMethodDescriptionget()returns a random English alphabet character (a-z or A-Z)returns a random English alphabet character ([a-z] or [A-Z])getCharacter(Character min, Character max) returns a random character between the given min and max values [min, mix]getCharacter(String input) picks a random character from the given stringgetCharacter(Locale locale) returns a random character based on the given locale.getCharacterNotIn(Set<Character> set) picks a random character not contained in the given setstatic CharacterGeneratorpicks a random character from the given arraypicks a random character from the given listMethods inherited from class mocka.generator.AbstractGenerator
getKey, getType
-
Method Details
-
getInstance
-
get
returns a random English alphabet character (a-z or A-Z) -
getCharacter
returns a random character based on the given locale. (english or korean) -
getCharacter
returns a random English alphabet character ([a-z] or [A-Z]) -
getCharacter
returns a random character between the given min and max values [min, mix] -
pickFrom
picks a random character from the given list -
pickFrom
picks a random character from the given array -
getCharacter
picks a random character from the given string -
getCharacterNotIn
picks a random character not contained in the given set
-