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() |
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 contentpublic JsonContentAssert assertThat()
assertThat
in interface org.assertj.core.api.AssertProvider<JsonContentAssert>
public String getJson()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.