程序包 org.coodex.mock

类 Mocker

java.lang.Object
org.coodex.mock.Mocker

public final class Mocker extends Object
  • 方法详细资料

    • mock

      public static <T> T mock(Class<T> type, Annotation... annotations)
    • mock

      public static Object mock(Type type, Type context, Annotation... annotations)
    • mockMethod

      public static Object mockMethod(Method method)
    • mockMethod

      public static Object mockMethod(Method method, Type instanceType)
    • getTypeAnnotations

      public static Annotation[] getTypeAnnotations(Type instanceType)
    • mockParameter

      public static Object mockParameter(Method method, int index)
    • mockParameter

      public static Object mockParameter(Method method, int index, Type instanceType)