Class TestUtil

java.lang.Object
com.landawn.abacus.util.TestUtil

public final class TestUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> T
    fill(Class<? extends T> beanClass)
    Fill the properties of the bean with random values.
    static <T> List<T>
    fill(Class<? extends T> beanClass, int count)
    Fill the properties of the bean with random values.
    static <T> T
    fill(Class<? extends T> beanClass, Collection<String> propNamesToFill)
    Fill the properties of the bean with random values.
    static <T> List<T>
    fill(Class<? extends T> beanClass, Collection<String> propNamesToFill, int count)
    Fill the properties of the bean with random values.
    static void
    fill(Object bean)
    Fill the properties of the bean with random values.
    static void
    fill(Object bean, Collection<String> propNamesToFill)
    Fill the properties of the bean with random values.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • fill

      public static void fill(Object bean)
      Fill the properties of the bean with random values.
      Parameters:
      bean - a bean object with getter/setter method
    • fill

      public static void fill(Object bean, Collection<String> propNamesToFill)
      Fill the properties of the bean with random values.
      Parameters:
      bean - a bean object with getter/setter method
      propNamesToFill -
    • fill

      public static <T> T fill(Class<? extends T> beanClass)
      Fill the properties of the bean with random values.
      Type Parameters:
      T -
      Parameters:
      beanClass - bean class with getter/setter methods
      Returns:
    • fill

      public static <T> List<T> fill(Class<? extends T> beanClass, int count)
      Fill the properties of the bean with random values.
      Type Parameters:
      T -
      Parameters:
      beanClass - bean class with getter/setter methods
      count -
      Returns:
    • fill

      public static <T> T fill(Class<? extends T> beanClass, Collection<String> propNamesToFill)
      Fill the properties of the bean with random values.
      Type Parameters:
      T -
      Parameters:
      beanClass - bean class with getter/setter methods
      propNamesToFill -
      Returns:
    • fill

      public static <T> List<T> fill(Class<? extends T> beanClass, Collection<String> propNamesToFill, int count)
      Fill the properties of the bean with random values.
      Type Parameters:
      T -
      Parameters:
      beanClass - bean class with getter/setter methods
      propNamesToFill -
      count -
      Returns: