Uses of Class
cloud.opencode.base.test.assertion.JsonAssert
Packages that use JsonAssert
-
Uses of JsonAssert in cloud.opencode.base.test.assertion
Methods in cloud.opencode.base.test.assertion that return JsonAssertModifier and TypeMethodDescriptionstatic JsonAssertJsonAssert.assertThat(String actual) Creates assertion for JSON string.JsonAssert.containsKey(String key) Asserts that JSON contains key.JsonAssert.containsValue(String value) Asserts that JSON contains string value.JsonAssert.doesNotContainKey(String key) Asserts that JSON does not contain key.JsonAssert.hasKeyValue(String key, boolean value) Asserts that JSON has key-value pair with boolean.JsonAssert.hasKeyValue(String key, Number value) Asserts that JSON has key-value pair with number.JsonAssert.hasKeyValue(String key, String value) Asserts that JSON has key-value pair.JsonAssert.hasLength(int length) Asserts that JSON has specified length.JsonAssert.hasNullValue(String key) Asserts that JSON has null value for key.JsonAssert.isEmptyArray()Asserts that JSON is empty array.JsonAssert.isEmptyObject()Asserts that JSON is empty object.Asserts that JSON equals another JSON (ignoring whitespace).JsonAssert.isJsonArray()Asserts that JSON is an array.JsonAssert.isJsonObject()Asserts that JSON is an object.JsonAssert.isNotNull()Asserts that JSON is not null.JsonAssert.isNull()Asserts that JSON is null.JsonAssert.isValidJson()Asserts that string is valid JSON.