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 toprovideObjectContentAssertto AssertJassertThatcalls.- Since:
- 1.4.0
Constructor Summary
Constructors Constructor Description ObjectContent(org.springframework.core.ResolvableType type, T object)Create a newObjectContentinstance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectContentAssert<T>assertThat()TgetObject()Return the actual object content.StringtoString()
Constructor Detail
ObjectContent
public ObjectContent(org.springframework.core.ResolvableType type, T object)
Create a newObjectContentinstance.- Parameters:
type- the type under test (ornullif not known)object- the actual object content
Method Detail
assertThat
public ObjectContentAssert<T> assertThat()
- Specified by:
assertThatin interfaceorg.assertj.core.api.AssertProvider<T>