Enum Class GeneratorType

java.lang.Object
java.lang.Enum<GeneratorType>
de.cuioss.test.generator.junit.parameterized.GeneratorType
All Implemented Interfaces:
Serializable, Comparable<GeneratorType>, Constable

public enum GeneratorType extends Enum<GeneratorType>
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 Constants
    Enum Constant
    Description
    Generates 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 Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static GeneratorType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NON_EMPTY_STRINGS

      public static final GeneratorType NON_EMPTY_STRINGS
      Generates non-empty String values that may contain whitespace or special characters.
    • NON_BLANK_STRINGS

      public static final GeneratorType NON_BLANK_STRINGS
      Generates non-blank String values that contain at least one non-whitespace character.
    • STRINGS

      public static final GeneratorType STRINGS
      Generates String values with length between minSize and maxSize, containing various characters.
    • LETTER_STRINGS

      public static final GeneratorType LETTER_STRINGS
      Generates String values with length between minSize and maxSize, containing only letters.
    • BOOLEANS

      public static final GeneratorType BOOLEANS
      Generates random boolean primitive values (true or false).
    • BOOLEAN_OBJECTS

      public static final GeneratorType BOOLEAN_OBJECTS
      Generates random Boolean object values (True or False).
    • BYTES

      public static final GeneratorType BYTES
      Generates random byte primitive values within the full byte range.
    • BYTE_OBJECTS

      public static final GeneratorType BYTE_OBJECTS
      Generates random Byte object values within the full byte range.
    • CHARACTERS

      public static final GeneratorType CHARACTERS
      Generates random character primitive values.
    • CHARACTER_OBJECTS

      public static final GeneratorType CHARACTER_OBJECTS
      Generates random Character object values.
    • DOUBLES

      public static final GeneratorType DOUBLES
      Generates double primitive values within the specified range (low to high).
    • DOUBLE_OBJECTS

      public static final GeneratorType DOUBLE_OBJECTS
      Generates random Double object values across the full double range.
    • FLOATS

      public static final GeneratorType FLOATS
      Generates float primitive values within the specified range (low to high).
    • FLOAT_OBJECTS

      public static final GeneratorType FLOAT_OBJECTS
      Generates random Float object values across the full float range.
    • INTEGERS

      public static final GeneratorType INTEGERS
      Generates integer primitive values within the specified range (low to high).
    • INTEGER_OBJECTS

      public static final GeneratorType INTEGER_OBJECTS
      Generates random Integer object values across the full integer range.
    • NUMBERS

      public static final GeneratorType NUMBERS
      Generates random Number objects of various numeric types.
    • SHORTS

      public static final GeneratorType SHORTS
      Generates random short primitive values within the full short range.
    • SHORT_OBJECTS

      public static final GeneratorType SHORT_OBJECTS
      Generates random Short object values within the full short range.
    • LONGS

      public static final GeneratorType LONGS
      Generates long primitive values within the specified range (low to high).
    • LONG_OBJECTS

      public static final GeneratorType LONG_OBJECTS
      Generates random Long object values across the full long range.
    • DATES

      public static final GeneratorType DATES
      Generates random java.util.Date objects with varying dates and times.
    • LOCAL_DATES

      public static final GeneratorType LOCAL_DATES
      Generates random LocalDate objects representing dates without time components.
    • LOCAL_TIMES

      public static final GeneratorType LOCAL_TIMES
      Generates random LocalTime objects representing times without date components.
    • LOCAL_DATE_TIMES

      public static final GeneratorType LOCAL_DATE_TIMES
      Generates random LocalDateTime objects representing date-time combinations without time zones.
    • ZONED_DATE_TIMES

      public static final GeneratorType ZONED_DATE_TIMES
      Generates random ZonedDateTime objects representing date-time combinations with time zones.
    • TIME_ZONES

      public static final GeneratorType TIME_ZONES
      Generates random TimeZone objects representing various time zones.
    • ZONE_IDS

      public static final GeneratorType ZONE_IDS
      Generates random ZoneId objects representing time zone identifiers.
    • ZONE_OFFSETS

      public static final GeneratorType ZONE_OFFSETS
      Generates random ZoneOffset objects representing time zone offsets from UTC.
    • TEMPORALS

      public static final GeneratorType TEMPORALS
      Generates random Temporal objects of various temporal types (dates, times, etc.).
    • CLASS_TYPES

      public static final GeneratorType CLASS_TYPES
      Generates random Class objects representing various Java types.
    • LOCALES

      public static final GeneratorType LOCALES
      Generates random Locale objects representing different language and country combinations.
    • SERIALIZABLES

      public static final GeneratorType SERIALIZABLES
      Generates random Serializable objects of various types.
    • RUNTIME_EXCEPTIONS

      public static final GeneratorType RUNTIME_EXCEPTIONS
      Generates random RuntimeException instances with various exception types.
    • THROWABLES

      public static final GeneratorType THROWABLES
      Generates random Throwable instances with various exception and error types.
    • URLS

      public static final GeneratorType URLS
      Generates random URL objects with various protocols, hosts, and paths.
    • FIXED_VALUES

      public static final GeneratorType FIXED_VALUES
      Generates values from a fixed set of predefined values.
    • DOMAIN_BLIND_TEXT

      public static final GeneratorType DOMAIN_BLIND_TEXT
      Generates random placeholder text (lorem ipsum style) for testing text-heavy components.
    • DOMAIN_CITY

      public static final GeneratorType DOMAIN_CITY
      Generates random city names for address-related testing.
    • DOMAIN_DISTINGUISHED_NAMES

      Generates random distinguished names (DNs) for LDAP/directory testing.
    • DOMAIN_EMAIL

      public static final GeneratorType DOMAIN_EMAIL
      Generates random email addresses in the format firstname.lastname@domain.tld.
    • DOMAIN_FULL_NAME

      public static final GeneratorType DOMAIN_FULL_NAME
      Generates random full names (first and last name combinations).
    • DOMAIN_MAIL_SUBJECT

      public static final GeneratorType DOMAIN_MAIL_SUBJECT
      Generates random email subject lines for testing email functionality.
    • DOMAIN_PERSON

      public static final GeneratorType DOMAIN_PERSON
      Generates random Person objects with first name, last name, and other personal details.
    • DOMAIN_PHONE_NUMBER

      public static final GeneratorType DOMAIN_PHONE_NUMBER
      Generates random phone numbers in various formats.
    • DOMAIN_STREET

      public static final GeneratorType DOMAIN_STREET
      Generates random street addresses including street name and house number.
    • DOMAIN_STREET_NAME

      public static final GeneratorType DOMAIN_STREET_NAME
      Generates random street names without house numbers.
    • DOMAIN_UUID

      public static final GeneratorType DOMAIN_UUID
      Generates random UUID objects for unique identifier testing.
    • DOMAIN_UUID_STRING

      public static final GeneratorType DOMAIN_UUID_STRING
      Generates random UUID strings in standard UUID format.
    • DOMAIN_ZIP_CODE

      public static final GeneratorType DOMAIN_ZIP_CODE
      Generates random zip/postal codes as integers.
  • Method Details

    • values

      public static GeneratorType[] 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

      public static GeneratorType valueOf(String name)
      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 name
      NullPointerException - if the argument is null