| Modifier and Type | Method and Description |
|---|---|
JsonVerifiable |
JsonVerifiable.array()
When in JSON path you iterate over a nameless array
|
JsonVerifiable |
JsonVerifiable.array(Object value)
When you want to assert values in a array with a given name
|
JsonVerifiable |
JsonVerifiable.arrayField()
When you want to compare values of a field in a nameless array
|
static JsonVerifiable |
JsonAssertion.assertThat(com.jayway.jsonpath.DocumentContext parsedJson)
Starts assertions for the JSON provided as
DocumentContext |
static JsonVerifiable |
JsonAssertion.assertThat(String body)
Starts assertions for the JSON provided as
String |
static JsonVerifiable |
JsonAssertion.assertThatJson(com.jayway.jsonpath.DocumentContext parsedJson)
Helper method so that there are no clashes with other static methods of that name
|
static JsonVerifiable |
JsonAssertion.assertThatJson(String body)
Helper method so that there are no clashes with other static methods of that name
|
static JsonVerifiable |
JsonPath.builder()
Returns a builder of
JsonVerifiable with which you can build your
JSON Path. |
static JsonVerifiable |
JsonPath.builder(String json)
Using a JSON Path builder for the given JSON you can read its value.
|
JsonVerifiable |
JsonVerifiable.contains(Object value)
Assertion of a field inside an array.
|
JsonVerifiable |
JsonVerifiable.elementWithIndex(int index)
Provides the
JsonVerifiable for the index element of the array |
JsonVerifiable |
JsonVerifiable.field(Object value)
Field assertion.
|
JsonVerifiable |
JsonVerifiable.field(String... fields)
Field assertions.
|
JsonVerifiable |
JsonVerifiable.hasSize(int size)
Checks if the array is of a given size.
|
JsonVerifiable |
JsonVerifiable.isEmpty()
Checks if the array is empty
|
JsonVerifiable |
JsonVerifiable.isEqualTo(Boolean value)
Equality comparison with a Boolean
|
JsonVerifiable |
JsonVerifiable.isEqualTo(Number value)
Equality comparison with a Number
|
JsonVerifiable |
JsonVerifiable.isEqualTo(Object value)
Equality comparison with any object
|
JsonVerifiable |
JsonVerifiable.isEqualTo(String value)
0Equality comparison with String
|
JsonVerifiable |
JsonVerifiable.isInstanceOf(Class clazz)
Checks if instance is the same type
|
JsonVerifiable |
JsonVerifiable.isNull()
Equality comparison to null
|
JsonVerifiable |
JsonVerifiable.matches(String value)
Regex matching for strings
|
JsonVerifiable |
JsonVerifiable.value()
Syntactic sugar for checking against an array of primitives
|
JsonVerifiable |
JsonVerifiable.withoutThrowingException()
Calling this method will setup the fluent interface to ignore any JSON Path verification
|
Copyright © 2015–2023. All rights reserved.