注释类型的使用
org.coodex.mock.Mock

使用Mock的程序包
程序包
说明
 
 
  • org.coodex.mockMock的使用

    注释类型为Mockorg.coodex.mock中的类
    修饰符和类型
    说明
    static @interface 
    布尔单值模拟器,支持类型: boolean, Boolean: 布尔值 true, false byte, int, short, long及其包装类: 默认true - 1; false - 0,可通过intTrue和intFalse更改 char及其包装类: 默认 true - T; false - F,可通过charTrue和charFalse更改 String: 默认true - "true"; false - "false",可通过strTrue, strFalse更改
    static @interface 
    模拟字符。
    static @interface 
     
    static @interface 
    单值模拟时,是否模拟null 对基础类型无效
    static @interface 
    数据单值模拟器,支持类型:byte, short, int, long, float, double及其包装类
    static @interface 
    字符串模拟配置 模拟配置优先级: - txtResource() 存在且有内容时,在资源文件行中模拟 - range() 非0长字符串,在range范围内模拟 - charCodeSet() 非0元素宿数组时,结合minLength,maxLength模拟 - 默认,'0'-'9','A'-'Z','a'-'z'范围内,结合minLength,maxLength模拟
  • org.coodex.mock.extMock的使用

    注释类型为Mockorg.coodex.mock.ext中的类
    修饰符和类型
    说明
    @interface 
     
    @interface 
     
    @interface 
     
    @interface 
    模拟中文姓名
    @interface 
     
    @interface 
     
    @interface 
     
    @interface