Class ObjectContent<T>
- java.lang.Object
- org.springframework.boot.test.json.ObjectContent<T>
- Type Parameters:
T
- the content type
- All Implemented Interfaces:
org.assertj.core.api.AssertProvider<ObjectContentAssert<T>>
public final class ObjectContent<T> extends Object implements org.assertj.core.api.AssertProvider<ObjectContentAssert<T>>
Object content usually created fromAbstractJsonMarshalTester
. Generally used only toprovide
ObjectContentAssert
to AssertJassertThat
calls.- Since:
- 1.4.0
Constructor Summary
Constructors Constructor Description ObjectContent(org.springframework.core.ResolvableType type, T object)
Create a newObjectContent
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectContentAssert<T>
assertThat()
T
getObject()
Return the actual object content.String
toString()
Constructor Detail
ObjectContent
public ObjectContent(org.springframework.core.ResolvableType type, T object)
Create a newObjectContent
instance.- Parameters:
type
- the type under test (ornull
if not known)object
- the actual object content
Method Detail
assertThat
public ObjectContentAssert<T> assertThat()
- Specified by:
assertThat
in interfaceorg.assertj.core.api.AssertProvider<T>