T - the source type that created the contentpublic final class JsonContent<T> extends java.lang.Object implements org.assertj.core.api.AssertProvider<JsonContentAssert>
provide JsonContentAssert to AssertJ assertThat
calls.| Constructor and Description |
|---|
JsonContent(java.lang.Class<?> resourceLoadClass,
org.springframework.core.ResolvableType type,
java.lang.String json)
Create a new
JsonContent instance. |
| Modifier and Type | Method and Description |
|---|---|
JsonContentAssert |
assertThat()
Deprecated.
to prevent accidental use. Prefer standard AssertJ
assertThat(context)... calls instead. |
java.lang.String |
getJson()
Return the actual JSON content string.
|
java.lang.String |
toString() |
public JsonContent(java.lang.Class<?> resourceLoadClass,
org.springframework.core.ResolvableType type,
java.lang.String json)
JsonContent instance.resourceLoadClass - the source class used to load resourcestype - the type under test (or null if not known)json - the actual JSON content@Deprecated public JsonContentAssert assertThat()
assertThat(context)... calls instead.assertThat
instead.assertThat in interface org.assertj.core.api.AssertProvider<JsonContentAssert>public java.lang.String getJson()
public java.lang.String toString()
toString in class java.lang.Object