类 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 from AbstractJsonMarshalTester. Generally used only to provide ObjectContentAssert to AssertJ assertThat calls.
从以下版本开始:
1.4.0
作者:
Phillip Webb
  • 构造器详细资料

    • ObjectContent

      public ObjectContent(ResolvableType type, T object)
      Create a new ObjectContent instance.
      参数:
      type - the type under test (or null if not known)
      object - the actual object content
  • 方法详细资料

    • assertThat

      public ObjectContentAssert<T> assertThat()
      指定者:
      assertThat 在接口中 org.assertj.core.api.AssertProvider<T>
    • getObject

      public T getObject()
      Return the actual object content.
      返回:
      the object content
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object