java.lang.Object
com.codebox.instance.ClassInstance<T>
- Type Parameters:
T
- the element type
The Class Instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R> Object
buildValue
(Class<R> returnType, LoadType loadType) Builds the value.final T
newInstance
(Class<T> clazz) New instance.
-
Constructor Details
-
ClassInstance
public ClassInstance()
-
-
Method Details
-
newInstance
New instance. This will get the first available constructor to run the test on. This allows for instances where there is intentionally not a no-arg constructor.- Parameters:
clazz
- the class- Returns:
- the t
-
buildValue
Builds the value.- Type Parameters:
R
- the generic type- Parameters:
returnType
- the return typeloadType
- the load type- Returns:
- the object
-