Package org.objenesis.instantiator.basic
Class FailingInstantiator<T>
java.lang.Object
org.objenesis.instantiator.basic.FailingInstantiator<T>
- All Implemented Interfaces:
ObjectInstantiator<T>
@Instantiator(NOT_COMPLIANT)
public class FailingInstantiator<T>
extends Object
implements ObjectInstantiator<T>
The instantiator that always throws an exception. Mainly used for tests
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FailingInstantiator
-
-
Method Details
-
newInstance
Description copied from interface:ObjectInstantiatorReturns a new instance of an object. The returned object's class is defined by the implementation.- Specified by:
newInstancein interfaceObjectInstantiator<T>- Returns:
- Always throwing an exception
-