T
- the content typepublic final class ObjectContent<T> extends Object implements org.assertj.core.api.AssertProvider<ObjectContentAssert<T>>
AbstractJsonMarshalTester
. Generally used
only to provide
ObjectContentAssert
to AssertJ
assertThat
calls.Constructor and Description |
---|
ObjectContent(ResolvableType type,
T object)
Create a new
ObjectContent instance. |
Modifier and Type | Method and Description |
---|---|
ObjectContentAssert<T> |
assertThat() |
T |
getObject()
Return the actual object content.
|
String |
toString() |
public ObjectContent(ResolvableType type, T object)
ObjectContent
instance.type
- the type under test (or null
if not known)object
- the actual object contentpublic ObjectContentAssert<T> assertThat()
assertThat
in interface org.assertj.core.api.AssertProvider<ObjectContentAssert<T>>
public T getObject()