Package com.landawn.abacus.util
Class TestUtil
java.lang.Object
com.landawn.abacus.util.TestUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
Fill the properties of the entity with random values.static <T> List<T>
Fill the properties of the entity with random values.static <T> T
fill
(Class<T> entityClass, Collection<String> propNamesToFill) Fill the properties of the entity with random values.static <T> List<T>
fill
(Class<T> entityClass, Collection<String> propNamesToFill, int count) Fill the properties of the entity with random values.static void
Fill the properties of the entity with random values.static void
fill
(Object entity, Collection<String> propNamesToFill) Fill the properties of the entity with random values.
-
Method Details
-
fill
Fill the properties of the entity with random values.- Parameters:
entity
- an entity object with getter/setter method
-
fill
Fill the properties of the entity with random values.- Parameters:
entity
- an entity object with getter/setter methodpropNamesToFill
-
-
fill
Fill the properties of the entity with random values.- Type Parameters:
T
-- Parameters:
entityClass
- entity class with getter/setter methods- Returns:
-
fill
Fill the properties of the entity with random values.- Type Parameters:
T
-- Parameters:
entityClass
- entity class with getter/setter methodscount
-- Returns:
-
fill
Fill the properties of the entity with random values.- Type Parameters:
T
-- Parameters:
entityClass
- entity class with getter/setter methodspropNamesToFill
-- Returns:
-
fill
Fill the properties of the entity with random values.- Type Parameters:
T
-- Parameters:
entityClass
- entity class with getter/setter methodspropNamesToFill
-count
-- Returns:
-