- All Implemented Interfaces:
Condition
The assertion of some JSON at a node within the tree
-
Constructor Summary
Constructors
Construct with the location in the tree to at
along with the condition to meet
-
Method Summary
test(com.fasterxml.jackson.databind.JsonNode json)
Execute the test of the condition
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JsonAt
Construct with the location in the tree to at
along with the condition to meet
- Parameters:
path - the path in the tree - JSON Pointer
condition - the Condition to satisfy
-
Method Details
-
test
public Result test(com.fasterxml.jackson.databind.JsonNode json)
Execute the test of the condition
- Specified by:
test in interface Condition
- Parameters:
json - the json to test
- Returns:
- a
Result explaining whether the condition was met and if not, why not
-
describe
Describe the condition
- Specified by:
describe in interface Condition
- Returns:
- description of the condition