程序包 org.coodex.mock

接口 MockerProvider


public interface MockerProvider
  • 字段详细资料

  • 方法详细资料

    • mock

      default <T> T mock(Class<T> type, Annotation... annotations)
      类型参数:
      T - 类型泛型
      参数:
      type - 模拟的数据类型
      annotations - 模拟配置
      返回:
      模拟值
    • mock

      Object mock(Type type, Type context, Annotation... annotations)
      参数:
      type - 要模拟类型的type,需要是具体的,不能有TypeVariable
      context - TypeVariable检索上下文
      annotations - 模拟配置
      返回:
      模拟值