spring-framework / org.springframework.test.web.reactive.server / JsonPathAssertions

JsonPathAssertions

open class JsonPathAssertions

JsonPath assertions.

Author
Rossen Stoyanchev

Since
5.0

See Also
<a href="https://github.com/jayway/JsonPath">https://github.com/jayway/JsonPath</a>JsonPathExpectationsHelper

Functions

doesNotExist

open fun doesNotExist(): BodyContentSpec

Applies JsonPathExpectationsHelper#doesNotExist(String).

exists

open fun exists(): BodyContentSpec

Applies JsonPathExpectationsHelper#exists(String).

isArray

open fun isArray(): BodyContentSpec

Applies JsonPathExpectationsHelper#assertValueIsArray(String).

isBoolean

open fun isBoolean(): BodyContentSpec

Applies JsonPathExpectationsHelper#assertValueIsBoolean(String).

isEmpty

open fun isEmpty(): BodyContentSpec

Applies JsonPathExpectationsHelper#assertValueIsEmpty(String).

isEqualTo

open fun isEqualTo(expectedValue: Any): BodyContentSpec

Applies JsonPathExpectationsHelper#assertValue(String, Object).

isMap

open fun isMap(): BodyContentSpec

Applies JsonPathExpectationsHelper#assertValueIsMap(String).

isNotEmpty

open fun isNotEmpty(): BodyContentSpec

Applies JsonPathExpectationsHelper#assertValueIsNotEmpty(String).

isNumber

open fun isNumber(): BodyContentSpec

Applies JsonPathExpectationsHelper#assertValueIsNumber(String).