public class JsonPathAssertions
extends java.lang.Object
JsonPathExpectationsHelper
Modifier and Type | Field and Description |
---|---|
private WebTestClient.BodyContentSpec |
bodySpec |
private java.lang.String |
content |
private JsonPathExpectationsHelper |
pathHelper |
Constructor and Description |
---|
JsonPathAssertions(WebTestClient.BodyContentSpec spec,
java.lang.String content,
java.lang.String expression,
java.lang.Object... args) |
Modifier and Type | Method and Description |
---|---|
WebTestClient.BodyContentSpec |
doesNotExist()
|
WebTestClient.BodyContentSpec |
doesNotHaveJsonPath()
|
boolean |
equals(java.lang.Object obj) |
WebTestClient.BodyContentSpec |
exists()
|
int |
hashCode() |
WebTestClient.BodyContentSpec |
hasJsonPath()
|
WebTestClient.BodyContentSpec |
isArray()
|
WebTestClient.BodyContentSpec |
isBoolean()
|
WebTestClient.BodyContentSpec |
isEmpty()
|
WebTestClient.BodyContentSpec |
isEqualTo(java.lang.Object expectedValue)
|
WebTestClient.BodyContentSpec |
isMap()
|
WebTestClient.BodyContentSpec |
isNotEmpty()
|
WebTestClient.BodyContentSpec |
isNumber()
|
<T> WebTestClient.BodyContentSpec |
value(<any> matcher)
Delegates to
JsonPathExpectationsHelper#assertValue(String, Matcher) . |
<T> WebTestClient.BodyContentSpec |
value(<any> matcher,
java.lang.Class<T> targetType)
Delegates to
JsonPathExpectationsHelper#assertValue(String, Matcher, Class) . |
private final WebTestClient.BodyContentSpec bodySpec
private final java.lang.String content
private final JsonPathExpectationsHelper pathHelper
JsonPathAssertions(WebTestClient.BodyContentSpec spec, java.lang.String content, java.lang.String expression, java.lang.Object... args)
public WebTestClient.BodyContentSpec isEqualTo(java.lang.Object expectedValue)
public WebTestClient.BodyContentSpec exists()
public WebTestClient.BodyContentSpec doesNotExist()
public WebTestClient.BodyContentSpec isEmpty()
public WebTestClient.BodyContentSpec isNotEmpty()
public WebTestClient.BodyContentSpec hasJsonPath()
public WebTestClient.BodyContentSpec doesNotHaveJsonPath()
public WebTestClient.BodyContentSpec isBoolean()
public WebTestClient.BodyContentSpec isNumber()
public WebTestClient.BodyContentSpec isArray()
public WebTestClient.BodyContentSpec isMap()
public <T> WebTestClient.BodyContentSpec value(<any> matcher)
JsonPathExpectationsHelper#assertValue(String, Matcher)
.public <T> WebTestClient.BodyContentSpec value(<any> matcher, java.lang.Class<T> targetType)
JsonPathExpectationsHelper#assertValue(String, Matcher, Class)
.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object