public class StatusResultMatchers extends Object
HttpResultMatchers.status().| 限定符 | 构造器和说明 |
|---|---|
protected |
StatusResultMatchers()
Protected constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ResultMatcher |
is(int status)
Assert the response status code is equal to an integer value.
|
ResultMatcher |
is(org.hamcrest.Matcher<Integer> matcher)
Assert the response status code with the given Hamcrest
Matcher. |
ResultMatcher |
reason(org.hamcrest.Matcher<? super String> matcher)
Assert the Servlet response error message with the given Hamcrest
Matcher. |
ResultMatcher |
reason(String reason)
Assert the Servlet response error message.
|
protected StatusResultMatchers()
HttpResultMatchers.status().public ResultMatcher is(org.hamcrest.Matcher<Integer> matcher)
Matcher.public ResultMatcher is(int status)
public ResultMatcher reason(org.hamcrest.Matcher<? super String> matcher)
Matcher.public ResultMatcher reason(String reason)
Copyright © 2016. All rights reserved.