| Package | Description |
|---|---|
| icu.easyj.spring.boot.test | |
| icu.easyj.spring.boot.test.result |
| Modifier and Type | Method and Description |
|---|---|
ContentResult |
MockResponse.content()
获取响应内容结果
|
| Modifier and Type | Method and Description |
|---|---|
ContentResult |
ContentResult.is(int expectedSize)
如果响应内容为列表数据,则校验数据量
|
ContentResult |
ContentResult.is(String expectedContent)
校验响应内容
|
ContentResult |
ContentResult.is(String jsonPathExpression,
Object expectedValue)
校验表达式对应的值
|
ContentResult |
ContentResult.isMatch(Pattern expectedContentPattern)
根据正则,校验响应内容格式
|
ContentResult |
ContentResult.isMatch(String expectedContentPattern)
根据匹配串,校验响应内容格式
|
Copyright © 2021–2022 EasyJ????. All rights reserved.