Enum Class GeneratorType
- All Implemented Interfaces:
Serializable,Comparable<GeneratorType>,Constable
Enum representing all available generator types from the
Generators class.
Used with GeneratorsSource to specify which generator method to use.- Since:
- 2.3
- Author:
- Oliver Wolff
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGenerates random Boolean object values (True or False).Generates random boolean primitive values (true or false).Generates random Byte object values within the full byte range.Generates random byte primitive values within the full byte range.Generates random Character object values.Generates random character primitive values.Generates random Class objects representing various Java types.Generates random java.util.Date objects with varying dates and times.Generates random placeholder text (lorem ipsum style) for testing text-heavy components.Generates random city names for address-related testing.Generates random distinguished names (DNs) for LDAP/directory testing.Generates random email addresses in the format firstname.lastname@domain.tld.Generates random full names (first and last name combinations).Generates random email subject lines for testing email functionality.Generates random Person objects with first name, last name, and other personal details.Generates random phone numbers in various formats.Generates random street addresses including street name and house number.Generates random street names without house numbers.Generates random UUID objects for unique identifier testing.Generates random UUID strings in standard UUID format.Generates random zip/postal codes as integers.Generates random Double object values across the full double range.Generates double primitive values within the specified range (low to high).Generates values from a fixed set of predefined values.Generates random Float object values across the full float range.Generates float primitive values within the specified range (low to high).Generates random Integer object values across the full integer range.Generates integer primitive values within the specified range (low to high).Generates String values with length between minSize and maxSize, containing only letters.Generates random LocalDateTime objects representing date-time combinations without time zones.Generates random LocalDate objects representing dates without time components.Generates random LocalTime objects representing times without date components.Generates random Locale objects representing different language and country combinations.Generates random Long object values across the full long range.Generates long primitive values within the specified range (low to high).Generates non-blank String values that contain at least one non-whitespace character.Generates non-empty String values that may contain whitespace or special characters.Generates random Number objects of various numeric types.Generates random RuntimeException instances with various exception types.Generates random Serializable objects of various types.Generates random Short object values within the full short range.Generates random short primitive values within the full short range.Generates String values with length between minSize and maxSize, containing various characters.Generates random Temporal objects of various temporal types (dates, times, etc.).Generates random Throwable instances with various exception and error types.Generates random TimeZone objects representing various time zones.Generates random URL objects with various protocols, hosts, and paths.Generates random ZoneId objects representing time zone identifiers.Generates random ZoneOffset objects representing time zone offsets from UTC.Generates random ZonedDateTime objects representing date-time combinations with time zones. -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneratorTypeReturns the enum constant of this class with the specified name.static GeneratorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NON_EMPTY_STRINGS
Generates non-empty String values that may contain whitespace or special characters. -
NON_BLANK_STRINGS
Generates non-blank String values that contain at least one non-whitespace character. -
STRINGS
Generates String values with length between minSize and maxSize, containing various characters. -
LETTER_STRINGS
Generates String values with length between minSize and maxSize, containing only letters. -
BOOLEANS
Generates random boolean primitive values (true or false). -
BOOLEAN_OBJECTS
Generates random Boolean object values (True or False). -
BYTES
Generates random byte primitive values within the full byte range. -
BYTE_OBJECTS
Generates random Byte object values within the full byte range. -
CHARACTERS
Generates random character primitive values. -
CHARACTER_OBJECTS
Generates random Character object values. -
DOUBLES
Generates double primitive values within the specified range (low to high). -
DOUBLE_OBJECTS
Generates random Double object values across the full double range. -
FLOATS
Generates float primitive values within the specified range (low to high). -
FLOAT_OBJECTS
Generates random Float object values across the full float range. -
INTEGERS
Generates integer primitive values within the specified range (low to high). -
INTEGER_OBJECTS
Generates random Integer object values across the full integer range. -
NUMBERS
Generates random Number objects of various numeric types. -
SHORTS
Generates random short primitive values within the full short range. -
SHORT_OBJECTS
Generates random Short object values within the full short range. -
LONGS
Generates long primitive values within the specified range (low to high). -
LONG_OBJECTS
Generates random Long object values across the full long range. -
DATES
Generates random java.util.Date objects with varying dates and times. -
LOCAL_DATES
Generates random LocalDate objects representing dates without time components. -
LOCAL_TIMES
Generates random LocalTime objects representing times without date components. -
LOCAL_DATE_TIMES
Generates random LocalDateTime objects representing date-time combinations without time zones. -
ZONED_DATE_TIMES
Generates random ZonedDateTime objects representing date-time combinations with time zones. -
TIME_ZONES
Generates random TimeZone objects representing various time zones. -
ZONE_IDS
Generates random ZoneId objects representing time zone identifiers. -
ZONE_OFFSETS
Generates random ZoneOffset objects representing time zone offsets from UTC. -
TEMPORALS
Generates random Temporal objects of various temporal types (dates, times, etc.). -
CLASS_TYPES
Generates random Class objects representing various Java types. -
LOCALES
Generates random Locale objects representing different language and country combinations. -
SERIALIZABLES
Generates random Serializable objects of various types. -
RUNTIME_EXCEPTIONS
Generates random RuntimeException instances with various exception types. -
THROWABLES
Generates random Throwable instances with various exception and error types. -
URLS
Generates random URL objects with various protocols, hosts, and paths. -
FIXED_VALUES
Generates values from a fixed set of predefined values. -
DOMAIN_BLIND_TEXT
Generates random placeholder text (lorem ipsum style) for testing text-heavy components. -
DOMAIN_CITY
Generates random city names for address-related testing. -
DOMAIN_DISTINGUISHED_NAMES
Generates random distinguished names (DNs) for LDAP/directory testing. -
DOMAIN_EMAIL
Generates random email addresses in the format firstname.lastname@domain.tld. -
DOMAIN_FULL_NAME
Generates random full names (first and last name combinations). -
DOMAIN_MAIL_SUBJECT
Generates random email subject lines for testing email functionality. -
DOMAIN_PERSON
Generates random Person objects with first name, last name, and other personal details. -
DOMAIN_PHONE_NUMBER
Generates random phone numbers in various formats. -
DOMAIN_STREET
Generates random street addresses including street name and house number. -
DOMAIN_STREET_NAME
Generates random street names without house numbers. -
DOMAIN_UUID
Generates random UUID objects for unique identifier testing. -
DOMAIN_UUID_STRING
Generates random UUID strings in standard UUID format. -
DOMAIN_ZIP_CODE
Generates random zip/postal codes as integers.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-