T
- the source type that created the contentpublic final class JsonContent<T> extends Object implements org.assertj.core.api.AssertProvider<JsonContentAssert>
provide
JsonContentAssert
to AssertJ assertThat
calls.Constructor and Description |
---|
JsonContent(Class<?> resourceLoadClass,
ResolvableType type,
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. |
String |
getJson()
Return the actual JSON content string.
|
String |
toString() |
public JsonContent(Class<?> resourceLoadClass, ResolvableType type, 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 String getJson()