Package ubic.gemma.rest.util
Class JsonAssert
- java.lang.Object
- 
- org.assertj.core.api.AbstractAssert<JsonAssert,String>
- 
- ubic.gemma.rest.util.JsonAssert
 
 
- 
- All Implemented Interfaces:
- org.assertj.core.api.Assert<JsonAssert,String>,- org.assertj.core.api.Descriptable<JsonAssert>,- org.assertj.core.api.ExtensionPoints<JsonAssert,String>
 
 public class JsonAssert extends org.assertj.core.api.AbstractAssert<JsonAssert,String> Assertions for JSON based onJsonPath.- Author:
- poirigui
 
- 
- 
Constructor SummaryConstructors Constructor Description JsonAssert(String json)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonAssertdoesNotHavePath(String jsonPath)Ensure that a given path does not exist.JsonAsserthasPath(String jsonPath)Ensure that a given path exists.<T> JsonAsserthasPathWithValue(String jsonPath, Object value)Ensure that a JSON path has the given value.static org.assertj.core.api.InstanceOfAssertFactory<String,JsonAssert>json()- 
Methods inherited from class org.assertj.core.api.AbstractAssertactual, areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingEquals, usingEquals, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
 
- 
 
- 
- 
- 
Constructor Detail- 
JsonAssertpublic JsonAssert(String json) 
 
- 
 - 
Method Detail- 
jsonpublic static org.assertj.core.api.InstanceOfAssertFactory<String,JsonAssert> json() 
 - 
hasPathpublic JsonAssert hasPath(String jsonPath) Ensure that a given path exists.
 - 
doesNotHavePathpublic JsonAssert doesNotHavePath(String jsonPath) Ensure that a given path does not exist.
 - 
hasPathWithValuepublic <T> JsonAssert hasPathWithValue(String jsonPath, Object value) Ensure that a JSON path has the given value.
 
- 
 
-