public final class TestTypeFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addBasicType(BasicType basicType)
Adds a custom type to the type factory for use with the test utils.
|
static <T> T |
createType(Class<T> clazz)
Create an object for given class.
|
public static void addBasicType(BasicType basicType)
basicType - Custom type to add.public static <T> T createType(Class<T> clazz) throws InstantiationException
clazz - Class for which to create an object.InstantiationException - If object can not be instantiated.ObjectInstantiationException - If object could not be instantiated for class.Copyright © 2017. All rights reserved.