public class ContentResult extends GenericContentResult<String,ContentResult>
contentmockResponse| 构造器和说明 |
|---|
ContentResult(MockResponse mockResponse,
String content) |
| 限定符和类型 | 方法和说明 |
|---|---|
ContentResult |
is(Consumer<String> expectedValidateFun)
可自定义验证方法
|
ContentResult |
is(String expectedContent)
校验响应内容
|
endpublic ContentResult(MockResponse mockResponse, String content)
public ContentResult is(String expectedContent)
expectedContent - 预期响应内容public ContentResult is(Consumer<String> expectedValidateFun)
is 在类中 GenericContentResult<String,ContentResult>expectedValidateFun - 预期值的验证函数Copyright © 2021 EasyJ寮�婧愮ぞ鍖�. All rights reserved.