| Package | Description |
|---|---|
| org.coodex.mock | |
| org.coodex.mock.ext |
| Modifier and Type | Class and Description |
|---|---|
static interface |
Mock.Boolean
布尔单值模拟器,支持类型:
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 |
Mock.Char
模拟字符。
|
static interface |
Mock.Nullable
单值模拟时,是否模拟null
对基础类型无效
|
static interface |
Mock.Number
数据单值模拟器,支持类型:byte, short, int, long, float, double及其包装类
|
static interface |
Mock.String
字符串模拟配置
模拟配置优先级:
- txtResource() 存在且有内容时,在资源文件行中模拟
- range() 非0长字符串,在range范围内模拟
- charCodeSet() 非0元素宿数组时,结合minLength,maxLength模拟
- 默认,'0'-'9','A'-'Z','a'-'z'范围内,结合minLength,maxLength模拟
|
| Modifier and Type | Class and Description |
|---|---|
interface |
Coordinates |
interface |
DateTime |
interface |
EMail |
interface |
FullName
模拟中文姓名
|
interface |
IdCard |
interface |
IpAddress |
interface |
MobilePhoneNum |
interface |
VehicleNum |
Copyright © 2020. All rights reserved.