Package net.jqwik.api.facades
Class ReflectionSupportFacade
java.lang.Object
net.jqwik.api.facades.ReflectionSupportFacade
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract <T> T
newInstanceInTestContext
(Class<T> clazz, Object context) Create instance of a class that can potentially be a non static inner class and its outer instance might becontext
abstract <T> T
newInstanceWithDefaultConstructor
(Class<T> clazz) Create instance of a class that can potentially be a non static inner class
-
Field Details
-
implementation
-
-
Constructor Details
-
ReflectionSupportFacade
public ReflectionSupportFacade()
-
-
Method Details
-
newInstanceInTestContext
Create instance of a class that can potentially be a non static inner class and its outer instance might becontext
- Type Parameters:
T
- The type of the instance to create- Parameters:
clazz
- The class to instantiatecontext
- The potential context instance- Returns:
- the newly created instance
-
newInstanceWithDefaultConstructor
Create instance of a class that can potentially be a non static inner class- Type Parameters:
T
- The type of the instance to create- Parameters:
clazz
- The class to instantiate- Returns:
- the newly created instance
-