Skip navigation links
A B C E F G H I L M N Q R S U W 

A

AssertionUtils - Class in icu.easyj.spring.boot.test.util
断言工具类
AssertionUtils() - Constructor for class icu.easyj.spring.boot.test.util.AssertionUtils
 

B

BaseResult - Class in icu.easyj.spring.boot.test.result
响应结果基类
BaseResult(MockResponse) - Constructor for class icu.easyj.spring.boot.test.result.BaseResult
构造函数
BaseSpringBootMockMvcTest - Class in icu.easyj.spring.boot.test
SpringBoot的模拟MVC接口测试 基类
BaseSpringBootMockMvcTest(Filter...) - Constructor for class icu.easyj.spring.boot.test.BaseSpringBootMockMvcTest
构造函数
builder - Variable in class icu.easyj.spring.boot.test.MockRequest
 

C

characterEncoding(Charset) - Method in class icu.easyj.spring.boot.test.MockRequest
设置字符编码
characterEncoding(String) - Method in class icu.easyj.spring.boot.test.MockRequest
设置字符编码
characterEncoding() - Method in class icu.easyj.spring.boot.test.MockResponse
获取响应内容编码结果
CharacterEncodingResult - Class in icu.easyj.spring.boot.test.result
响应内容编码结果
CharacterEncodingResult(MockResponse, String) - Constructor for class icu.easyj.spring.boot.test.result.CharacterEncodingResult
 
contains(String...) - Method in class icu.easyj.spring.boot.test.result.HeaderResult
判断响应头是否存在
content(byte[]) - Method in class icu.easyj.spring.boot.test.MockRequest
设置内容
content(String) - Method in class icu.easyj.spring.boot.test.MockRequest
设置内容
content(Object) - Method in class icu.easyj.spring.boot.test.MockRequest
设置内容
content(String, Object) - Method in class icu.easyj.spring.boot.test.MockRequest
设置完整内容
content() - Method in class icu.easyj.spring.boot.test.MockResponse
获取响应内容结果
content(Class<T>) - Method in class icu.easyj.spring.boot.test.MockResponse
获取泛型响应内容结果
content(Type) - Method in class icu.easyj.spring.boot.test.MockResponse
获取泛型响应内容结果
content(Class<T>, Type...) - Method in class icu.easyj.spring.boot.test.MockResponse
获取泛型响应内容结果
content - Variable in class icu.easyj.spring.boot.test.result.GenericContentResult
 
contentList(Class<T>, Class<?>) - Method in class icu.easyj.spring.boot.test.MockResponse
获取泛型 List 响应内容结果
ContentResult - Class in icu.easyj.spring.boot.test.result
响应内容结果
ContentResult(MockResponse, ResultActions, String) - Constructor for class icu.easyj.spring.boot.test.result.ContentResult
 
contentType(MediaType) - Method in class icu.easyj.spring.boot.test.MockRequest
设置请求内容类型枚举
contentType(String) - Method in class icu.easyj.spring.boot.test.MockRequest
设置请求内容类型
contentType() - Method in class icu.easyj.spring.boot.test.MockResponse
获取响应内容类型结果
ContentTypeResult - Class in icu.easyj.spring.boot.test.result
响应内容类型结果
ContentTypeResult(MockResponse, String) - Constructor for class icu.easyj.spring.boot.test.result.ContentTypeResult
 

E

end() - Method in class icu.easyj.spring.boot.test.result.BaseResult
结束对当前响应结果的校验,可继续对下一个响应结果的校验,也可直接结束不校验了。 部分类型的响应结果,为一次性校验,无需主动调用此方法。
error(String, Object, Object) - Static method in class icu.easyj.spring.boot.test.util.AssertionUtils
生成AssertionError对象
excelToList(Class<T>) - Method in class icu.easyj.spring.boot.test.result.FileExportResult
如果文件是excel,则通过excel工具类,解析为列表数据

F

file(String, String) - Method in class icu.easyj.spring.boot.test.MockRequest
设置要上传的文件
file() - Method in class icu.easyj.spring.boot.test.MockResponse
获取文件导出结果
FileExportResult - Class in icu.easyj.spring.boot.test.result
文件导出结果
FileExportResult(MockResponse, ResultActions, byte[]) - Constructor for class icu.easyj.spring.boot.test.result.FileExportResult
构造函数

G

GenericContentResult<T> - Class in icu.easyj.spring.boot.test.result
泛型响应内容结果
GenericContentResult(MockResponse, ResultActions, T) - Constructor for class icu.easyj.spring.boot.test.result.GenericContentResult
构造函数
get() - Method in class icu.easyj.spring.boot.test.result.CharacterEncodingResult
 
get() - Method in class icu.easyj.spring.boot.test.result.ContentTypeResult
 
get() - Method in class icu.easyj.spring.boot.test.result.GenericContentResult
 
get() - Method in class icu.easyj.spring.boot.test.result.StatusResult
 
getOriginBuilder() - Method in class icu.easyj.spring.boot.test.MockRequest
 
getOriginMockMvc() - Method in class icu.easyj.spring.boot.test.MockRequest
 
getOriginMultipartBuilder() - Method in class icu.easyj.spring.boot.test.MockRequest
 

H

header(String, Object...) - Method in class icu.easyj.spring.boot.test.MockRequest
设置头信息
header() - Method in class icu.easyj.spring.boot.test.MockResponse
获取响应头结果
HeaderResult - Class in icu.easyj.spring.boot.test.result
响应头结果
HeaderResult(MockResponse, MockHttpServletResponse) - Constructor for class icu.easyj.spring.boot.test.result.HeaderResult
 

I

icu.easyj.spring.boot.test - package icu.easyj.spring.boot.test
 
icu.easyj.spring.boot.test.result - package icu.easyj.spring.boot.test.result
 
icu.easyj.spring.boot.test.util - package icu.easyj.spring.boot.test.util
 
initMockMvc(Filter...) - Method in class icu.easyj.spring.boot.test.BaseSpringBootMockMvcTest
初始化模拟MVC
initMockMvcBeforeEachTestMethod() - Method in class icu.easyj.spring.boot.test.BaseSpringBootMockMvcTest
测试前的初始化方法
is(String) - Method in class icu.easyj.spring.boot.test.result.CharacterEncodingResult
 
is(Charset) - Method in class icu.easyj.spring.boot.test.result.CharacterEncodingResult
 
is(String) - Method in class icu.easyj.spring.boot.test.result.ContentResult
校验响应内容
is(String, Object) - Method in class icu.easyj.spring.boot.test.result.ContentResult
校验表达式对应的值
is(int) - Method in class icu.easyj.spring.boot.test.result.ContentResult
如果响应内容为列表数据,则校验数据量
is(String) - Method in class icu.easyj.spring.boot.test.result.ContentTypeResult
 
is(String, String) - Method in class icu.easyj.spring.boot.test.result.ContentTypeResult
 
is(MediaType) - Method in class icu.easyj.spring.boot.test.result.ContentTypeResult
 
is(int) - Method in class icu.easyj.spring.boot.test.result.FileExportResult
判断文件byte数组的长度
is(Consumer<T>) - Method in class icu.easyj.spring.boot.test.result.GenericContentResult
可自定义验证方法
is(String, Object) - Method in class icu.easyj.spring.boot.test.result.HeaderResult
判断响应头的值
is(int) - Method in class icu.easyj.spring.boot.test.result.ListContentResult
校验列表数据量
is(String) - Method in class icu.easyj.spring.boot.test.result.ListContentResult
校验数据
is(int) - Method in class icu.easyj.spring.boot.test.result.StatusResult
 
is(int...) - Method in class icu.easyj.spring.boot.test.result.StatusResult
 
is(HttpStatus) - Method in class icu.easyj.spring.boot.test.result.StatusResult
 
is(HttpStatus...) - Method in class icu.easyj.spring.boot.test.result.StatusResult
 
isClientErrorSeries() - Method in class icu.easyj.spring.boot.test.result.StatusResult
判断响应状态为 4xx 系列
isInformationalSeries() - Method in class icu.easyj.spring.boot.test.result.StatusResult
判断响应状态为 1xx 系列
isMatch(String) - Method in class icu.easyj.spring.boot.test.result.ContentResult
根据匹配串,校验响应内容格式
isMatch(Pattern) - Method in class icu.easyj.spring.boot.test.result.ContentResult
根据正则,校验响应内容格式
isMatch(String, String) - Method in class icu.easyj.spring.boot.test.result.HeaderResult
根据匹配串判断响应头的值的格式
isMatch(String, Pattern) - Method in class icu.easyj.spring.boot.test.result.HeaderResult
根据正则判断响应头的值的格式
isOk() - Method in class icu.easyj.spring.boot.test.MockResponse
请求成功,响应200
isOk() - Method in class icu.easyj.spring.boot.test.result.StatusResult
 
isRedirectionSeries() - Method in class icu.easyj.spring.boot.test.result.StatusResult
判断响应状态为 3xx 系列
isSeries(HttpStatus.Series) - Method in class icu.easyj.spring.boot.test.result.StatusResult
判断响应状态系列
isSeries(HttpStatus.Series...) - Method in class icu.easyj.spring.boot.test.result.StatusResult
判断响应状态系列
isServerErrorSeries() - Method in class icu.easyj.spring.boot.test.result.StatusResult
判断响应状态为 5xx 系列
isSuccessfulSeries() - Method in class icu.easyj.spring.boot.test.result.StatusResult
判断响应状态为 2xx 系列

L

list(Class<T>) - Method in class icu.easyj.spring.boot.test.MockResponse
获取列表响应内容结果
ListContentResult<T> - Class in icu.easyj.spring.boot.test.result
列表响应内容结果
ListContentResult(MockResponse, ResultActions, List<T>) - Constructor for class icu.easyj.spring.boot.test.result.ListContentResult
构造函数

M

mockDelete(String, Object...) - Method in class icu.easyj.spring.boot.test.BaseSpringBootMockMvcTest
创建模拟DELETE请求
mockGet(String, Object...) - Method in class icu.easyj.spring.boot.test.BaseSpringBootMockMvcTest
创建模拟GET请求
mockMvc - Variable in class icu.easyj.spring.boot.test.BaseSpringBootMockMvcTest
 
mockMvc - Variable in class icu.easyj.spring.boot.test.MockRequest
 
mockPatch(String, Object...) - Method in class icu.easyj.spring.boot.test.BaseSpringBootMockMvcTest
创建模拟PATCH请求
mockPost(String, Object...) - Method in class icu.easyj.spring.boot.test.BaseSpringBootMockMvcTest
创建模拟POST请求
mockPostMultipart(String, Object...) - Method in class icu.easyj.spring.boot.test.BaseSpringBootMockMvcTest
创建模拟POST请求,可上传文件
mockPut(String, Object...) - Method in class icu.easyj.spring.boot.test.BaseSpringBootMockMvcTest
创建模拟PUT请求
MockRequest - Class in icu.easyj.spring.boot.test
模拟Request
MockRequest(MockMvc, MockHttpServletRequestBuilder, String, Object[]) - Constructor for class icu.easyj.spring.boot.test.MockRequest
 
MockResponse - Class in icu.easyj.spring.boot.test
模拟Response
MockResponse(ResultActions) - Constructor for class icu.easyj.spring.boot.test.MockResponse
 
mockResponse - Variable in class icu.easyj.spring.boot.test.result.BaseResult
 
multipartBuilder - Variable in class icu.easyj.spring.boot.test.MockRequest
 

N

notContains(String...) - Method in class icu.easyj.spring.boot.test.result.HeaderResult
判断响应头是否不存在

Q

queryParam(String, String...) - Method in class icu.easyj.spring.boot.test.MockRequest
设置查询参数
queryParams(MultiValueMap<String, String>) - Method in class icu.easyj.spring.boot.test.MockRequest
批量设置查询参数

R

resultActions - Variable in class icu.easyj.spring.boot.test.result.GenericContentResult
 

S

send() - Method in class icu.easyj.spring.boot.test.MockRequest
发送模拟请求
status() - Method in class icu.easyj.spring.boot.test.MockResponse
获取响应状态结果
StatusResult - Class in icu.easyj.spring.boot.test.result
响应状态结果
StatusResult(MockResponse, int) - Constructor for class icu.easyj.spring.boot.test.result.StatusResult
 

U

uriVars - Variable in class icu.easyj.spring.boot.test.MockRequest
 
urlTemplate - Variable in class icu.easyj.spring.boot.test.MockRequest
 

W

wac - Variable in class icu.easyj.spring.boot.test.BaseSpringBootMockMvcTest
 
A B C E F G H I L M N Q R S U W 
Skip navigation links

Copyright © 2021–2022 EasyJ????. All rights reserved.