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