public abstract class AbstractTypeMocker<A extends Annotation> extends Object implements TypeMocker<A>
| Constructor and Description |
|---|
AbstractTypeMocker() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
accept(A annotation) |
boolean |
accept(A mockAnnotation,
Type targetType) |
protected static Class |
getClassFromType(Type targetType) |
protected abstract Class[] |
getSupportedClasses() |
Object |
mock(A mockAnnotation,
Mock.Nullable nullable,
Type targetType) |
abstract Object |
mock(A mockAnnotation,
Type targetType) |
protected abstract Class[] getSupportedClasses()
protected abstract boolean accept(A annotation)
public boolean accept(A mockAnnotation, Type targetType)
accept in interface TypeMocker<A extends Annotation>public Object mock(A mockAnnotation, Mock.Nullable nullable, Type targetType)
mock in interface TypeMocker<A extends Annotation>Copyright © 2020. All rights reserved.