Class RandomUtility
- java.lang.Object
-
- io.tech1.framework.domain.utilities.random.RandomUtility
-
public final class RandomUtility extends Object
-
-
Method Summary
-
-
-
Method Detail
-
randomShort
public static Short randomShort()
-
randomBoolean
public static boolean randomBoolean()
-
randomDouble
public static Double randomDouble()
-
randomInteger
public static Integer randomInteger()
-
randomIntegerGreaterThanZero
public static Integer randomIntegerGreaterThanZero()
-
randomIntegerLessThanZero
public static Integer randomIntegerLessThanZero()
-
randomIntegerGreaterThanZeroByBounds
public static Integer randomIntegerGreaterThanZeroByBounds(int lowerBound, int upperBound)
-
randomLong
public static Long randomLong()
-
randomLongGreaterThanZero
public static Long randomLongGreaterThanZero()
-
randomLongLessThanZero
public static Long randomLongLessThanZero()
-
randomLongGreaterThanZeroByBounds
public static Long randomLongGreaterThanZeroByBounds(long lowerBound, long upperBound)
-
randomBigDecimal
public static BigDecimal randomBigDecimal()
-
randomBigDecimalGreaterThanZero
public static BigDecimal randomBigDecimalGreaterThanZero()
-
randomBigDecimalLessThanZero
public static BigDecimal randomBigDecimalLessThanZero()
-
randomBigDecimalGreaterThanZeroByBounds
public static BigDecimal randomBigDecimalGreaterThanZeroByBounds(long lowerBound, long upperBound)
-
randomBigDecimalLessThanZeroByBounds
public static BigDecimal randomBigDecimalLessThanZeroByBounds(long lowerBound, long upperBound)
-
randomBigDecimalByBounds
public static BigDecimal randomBigDecimalByBounds(long lowerBound, long upperBound)
-
randomBigInteger
public static BigInteger randomBigInteger()
-
randomBigIntegerGreaterThanZero
public static BigInteger randomBigIntegerGreaterThanZero()
-
randomBigIntegerLessThanZero
public static BigInteger randomBigIntegerLessThanZero()
-
randomBigIntegerGreaterThanZeroByBounds
public static BigInteger randomBigIntegerGreaterThanZeroByBounds(long lowerBound, long upperBound)
-
randomBigIntegerLessThanZeroByBounds
public static BigInteger randomBigIntegerLessThanZeroByBounds(long lowerBound, long upperBound)
-
randomBigIntegerByBounds
public static BigInteger randomBigIntegerByBounds(long lowerBound, long upperBound)
-
randomString
public static String randomString()
-
randomStringLetterOrNumbersOnly
public static String randomStringLetterOrNumbersOnly(int size)
-
randomIPv4
public static String randomIPv4()
-
randomIPAddress
public static IPAddress randomIPAddress()
-
localhost
public static IPAddress localhost()
-
randomServerURL
public static String randomServerURL()
-
randomStringsAsArray
public static String[] randomStringsAsArray(int size)
-
randomEmailAsValue
public static String randomEmailAsValue()
-
randomEmail
public static Email randomEmail()
-
randomElement
public static <T> T randomElement(List<T> list)
-
randomElement
public static <T> T randomElement(Set<T> set)
-
randomLocalDate
public static LocalDate randomLocalDate()
-
randomLocalDateByBounds
public static LocalDate randomLocalDateByBounds(int lowerYear, int upperYear)
-
randomLocalDateTime
public static LocalDateTime randomLocalDateTime()
-
randomLocalDateTimeByBounds
public static LocalDateTime randomLocalDateTimeByBounds(int lowerYear, int upperYear)
-
randomDate
public static Date randomDate()
-
randomDateByBounds
public static Date randomDateByBounds(int lowerYear, int upperYear)
-
randomEnumExcept
public static <T extends Enum<T>> T randomEnumExcept(Class<T> enumClazz, T enumValue)
-
randomEnumExceptWildcard
public static <T extends Enum> T randomEnumExceptWildcard(Class<?> enumClazz, T enumValue)
-
randomEnumExcept
public static <T extends Enum<T>> T randomEnumExcept(Class<T> enumClazz, List<T> enumValues)
-
randomEnumExceptWildcard
public static <T extends Enum> T randomEnumExceptWildcard(Class<?> enumClazz, List<T> enumValues)
-
containsPrimitiveWrapper
public static <T> boolean containsPrimitiveWrapper(Class<T> type)
-
randomListOfPrimitiveWrappers
public static <T> List<T> randomListOfPrimitiveWrappers(Class<T> type, int size)
-
randomMethod
public static Method randomMethod()
-
randomZoneId
public static ZoneId randomZoneId()
-
randomTimeZone
public static TimeZone randomTimeZone()
-
randomUsername
public static Username randomUsername()
-
randomPassword
public static Password randomPassword()
-
randomFeignException
public static feign.FeignException randomFeignException()
-
validGeoLocation
public static GeoLocation validGeoLocation()
-
invalidGeoLocation
public static GeoLocation invalidGeoLocation()
-
randomGeoLocation
public static GeoLocation randomGeoLocation()
-
validUserAgentDetails
public static UserAgentDetails validUserAgentDetails()
-
invalidUserAgentDetails
public static UserAgentDetails invalidUserAgentDetails()
-
randomUserAgentDetails
public static UserAgentDetails randomUserAgentDetails()
-
validUserRequestMetadata
public static UserRequestMetadata validUserRequestMetadata()
-
invalidUserRequestMetadata
public static UserRequestMetadata invalidUserRequestMetadata()
-
randomUserRequestMetadata
public static UserRequestMetadata randomUserRequestMetadata()
-
randomHardwareMonitoringThreshold
public static HardwareMonitoringThreshold randomHardwareMonitoringThreshold()
-
randomHardwareMonitoringThresholds
public static HardwareMonitoringThresholds randomHardwareMonitoringThresholds()
-
randomHardwareMonitoringDatapointTableRow
public static HardwareMonitoringDatapointTableRow randomHardwareMonitoringDatapointTableRow()
-
-