Class ObjectContainsKeys
java.lang.Object
uk.org.webcompere.modelassert.json.condition.ObjectContainsKeys
- All Implemented Interfaces:
Condition
An object node contains given keys/field
-
Constructor Summary
ConstructorsConstructorDescriptionObjectContainsKeys(boolean strictOrder, String key, String... keys) Construct with the keys to find - a varargs with a minimum of 1 argumentObjectContainsKeys(String key, String... keys) Construct with the keys to find - a varargs with a minimum of 1 argument -
Method Summary
-
Constructor Details
-
ObjectContainsKeys
Construct with the keys to find - a varargs with a minimum of 1 argument- Parameters:
key- the first keykeys- additional keys
-
ObjectContainsKeys
Construct with the keys to find - a varargs with a minimum of 1 argument- Parameters:
strictOrder- whether the order must be maintained between the key list and the loaded JSONkey- the first keykeys- additional keys
-
-
Method Details
-
test
Execute the test of the condition -
describe
Describe the condition
-