public class JsonPathResultMatchers extends Object
HttpResultMatchers.jsonPath(java.lang.String, org.hamcrest.Matcher<T>).| 限定符 | 构造器和说明 |
|---|---|
protected |
JsonPathResultMatchers(String expression)
|
| 限定符和类型 | 方法和说明 |
|---|---|
ResultMatcher |
arraySize(int size)
Evaluate the JSON path and assert the array found has the expected size.
|
ResultMatcher |
doesNotExist()
Evaluate the JSON path and assert not content was found.
|
ResultMatcher |
exists()
Evaluate the JSONPath and assert that content exists.
|
ResultMatcher |
isArray()
Evaluate the JSON path and assert the content found is an array.
|
<T> ResultMatcher |
value(org.hamcrest.Matcher<T> matcher)
Evaluate the JSONPath and assert the value of the content found with the
given Hamcrest
Matcher. |
ResultMatcher |
value(Object value)
Evaluate the JSONPath and assert the value of the content found.
|
protected JsonPathResultMatchers(String expression)
public <T> ResultMatcher value(org.hamcrest.Matcher<T> matcher)
Matcher.public ResultMatcher value(Object value)
public ResultMatcher exists()
public ResultMatcher doesNotExist()
public ResultMatcher isArray()
public ResultMatcher arraySize(int size)
Copyright © 2016. All rights reserved.