Class ReturnsSmartNulls.ThrowsSmartNullPointer
- java.lang.Object
-
- org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNulls.ThrowsSmartNullPointer
-
- All Implemented Interfaces:
Answer
- Enclosing class:
- ReturnsSmartNulls
private static class ReturnsSmartNulls.ThrowsSmartNullPointer extends java.lang.Object implements Answer
-
-
Field Summary
Fields Modifier and Type Field Description private Location
location
private InvocationOnMock
unstubbedInvocation
-
Constructor Summary
Constructors Constructor Description ThrowsSmartNullPointer(InvocationOnMock unstubbedInvocation, Location location)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
answer(InvocationOnMock currentInvocation)
private static boolean
isMethodOf(java.lang.Class<?> clazz, java.lang.Object instance, java.lang.reflect.Method method)
-
-
-
Field Detail
-
unstubbedInvocation
private final InvocationOnMock unstubbedInvocation
-
location
private final Location location
-
-
Constructor Detail
-
ThrowsSmartNullPointer
ThrowsSmartNullPointer(InvocationOnMock unstubbedInvocation, Location location)
-
-
Method Detail
-
answer
public java.lang.Object answer(InvocationOnMock currentInvocation) throws java.lang.Throwable
-
isMethodOf
private static boolean isMethodOf(java.lang.Class<?> clazz, java.lang.Object instance, java.lang.reflect.Method method)
-
-