类 ObjectContent<T>
- java.lang.Object
- org.springframework.boot.test.json.ObjectContent<T>
- 类型参数:
T
- the content type
- 所有已实现的接口:
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.- 从以下版本开始:
- 1.4.0
构造器概要
构造器 构造器 说明 ObjectContent(org.springframework.core.ResolvableType type, T object)
Create a newObjectContent
instance.
构造器详细资料
ObjectContent
public ObjectContent(org.springframework.core.ResolvableType type, T object)
Create a newObjectContent
instance.- 参数:
type
- the type under test (ornull
if not known)object
- the actual object content
方法详细资料
assertThat
public ObjectContentAssert<T> assertThat()
- 指定者:
assertThat
在接口中org.assertj.core.api.AssertProvider<T>