Class JsonPathResultMatchers
java.lang.Object
com.codename1.backend.test.JsonPathResultMatchers
Expectations of one JSONPath into the JSON body, from
MockMvcResultMatchers.jsonPath(String, Object...).-
Method Summary
-
Method Details
-
value
The value there equalsexpected. Numbers compare by value, so5matches the parser's5L; a list compares element by element. -
exists
A non-null value is there. A JSONnulldoes not count, as in Spring:{"value":null}failsexists()and passesdoesNotExist(). -
doesNotExist
No non-null value is there: the path is absent or holds JSONnull. -
isEmpty
An empty value is there: an empty string, list or map, or JSONnull. An absent path fails, asisNotEmpty()does -- it is not an empty value. -
isNotEmpty
-
isArray
-
isMap
-
isString
-
isNumber
-
isBoolean
-