Package | Description |
---|---|
org.mockito.internal.stubbing.defaultanswers |
Implementations of default Answers.
|
org.mockito.internal.util.reflection |
Reflection utilities.
|
Modifier and Type | Field and Description |
---|---|
private GenericMetadataSupport |
ReturnsDeepStubs.ReturnsDeepStubsSerializationFallback.returnTypeGenericMetadata |
Modifier and Type | Method and Description |
---|---|
protected GenericMetadataSupport |
ReturnsDeepStubs.actualParameterizedType(java.lang.Object mock) |
protected GenericMetadataSupport |
ReturnsDeepStubs.ReturnsDeepStubsSerializationFallback.actualParameterizedType(java.lang.Object mock) |
Modifier and Type | Method and Description |
---|---|
private java.lang.Object |
ReturnsDeepStubs.deepStub(InvocationOnMock invocation,
GenericMetadataSupport returnTypeGenericMetadata) |
private java.lang.Object |
ReturnsDeepStubs.newDeepStubMock(GenericMetadataSupport returnTypeGenericMetadata,
java.lang.Object parentMock)
Creates a mock using the Generics Metadata.
|
private ReturnsDeepStubs |
ReturnsDeepStubs.returnsDeepStubsAnswerUsing(GenericMetadataSupport returnTypeGenericMetadata) |
private MockSettings |
ReturnsDeepStubs.withSettingsUsing(GenericMetadataSupport returnTypeGenericMetadata,
MockCreationSettings parentMockSettings) |
Constructor and Description |
---|
ReturnsDeepStubsSerializationFallback(GenericMetadataSupport returnTypeGenericMetadata) |
Modifier and Type | Class and Description |
---|---|
private static class |
GenericMetadataSupport.FromClassGenericMetadataSupport
Generic metadata implementation for
Class . |
private static class |
GenericMetadataSupport.FromParameterizedTypeGenericMetadataSupport
Generic metadata implementation for "standalone"
ParameterizedType . |
private static class |
GenericMetadataSupport.GenericArrayReturnType |
private static class |
GenericMetadataSupport.NotGenericReturnTypeSupport
Non-Generic metadata for
Class returned via Method.getGenericReturnType() . |
private static class |
GenericMetadataSupport.ParameterizedReturnType
Generic metadata specific to
ParameterizedType returned via Method.getGenericReturnType() . |
private static class |
GenericMetadataSupport.TypeVariableReturnType
Generic metadata for
TypeVariable returned via Method.getGenericReturnType() . |
Modifier and Type | Field and Description |
---|---|
private GenericMetadataSupport |
GenericMetadataSupport.GenericArrayReturnType.genericArrayType |
Modifier and Type | Method and Description |
---|---|
static GenericMetadataSupport |
GenericMetadataSupport.inferFrom(java.lang.reflect.Type type)
Create an new instance of
GenericMetadataSupport inferred from a Type . |
GenericMetadataSupport |
GenericMetadataSupport.resolveGenericReturnType(java.lang.reflect.Method method)
Resolve current method generic return type to a
GenericMetadataSupport . |
private GenericMetadataSupport |
GenericMetadataSupport.resolveGenericType(java.lang.reflect.Type type,
java.lang.reflect.Method method) |
Constructor and Description |
---|
GenericArrayReturnType(GenericMetadataSupport genericArrayType,
int arity) |
NotGenericReturnTypeSupport(GenericMetadataSupport source,
java.lang.reflect.Type genericReturnType) |
ParameterizedReturnType(GenericMetadataSupport source,
java.lang.reflect.TypeVariable<?>[] typeParameters,
java.lang.reflect.ParameterizedType parameterizedType) |
TypeVariableReturnType(GenericMetadataSupport source,
java.lang.reflect.TypeVariable<?>[] typeParameters,
java.lang.reflect.TypeVariable<?> typeVariable) |