程序包 org.coodex.mock
注释类型 Mock.String
- 封闭类:
- Mock
@Retention(RUNTIME)
@Target({FIELD,TYPE,METHOD,ANNOTATION_TYPE,PARAMETER})
public static @interface Mock.String
字符串模拟配置 模拟配置优先级: - txtResource() 存在且有内容时,在资源文件行中模拟 - range() 非0长字符串,在range范围内模拟 - charCodeSet() 非0元素宿数组时,结合minLength,maxLength模拟 - 默认,'0'-'9','A'-'Z','a'-'z'范围内,结合minLength,maxLength模拟
-
可选元素概要
可选元素 -
字段概要
字段修饰符和类型字段说明static final floatstatic final intstatic final int
-
字段详细资料
-
元素详细资料
-
minLength
int minLength- 返回:
- 最小长度
- 默认值:
- 5
-
maxLength
int maxLength- 返回:
- 最大长度
- 默认值:
- 10
-
emojiProbability
float emojiProbability- 返回:
- emoji字符出现的几率
- 默认值:
- 0.0f
-
charCodeSets
CharCodeSet[] charCodeSets- 返回:
- 模拟的charCode范围
- 默认值:
- {}
-
range
String[] range- 返回:
- 在指定的内容中模拟
- 默认值:
- {}
-
txtResource
String txtResource- 返回:
- 使用资源文件模拟,一行一个
- 默认值:
- ""
-