Class ObjectContent<T>

java.lang.Object
org.springframework.boot.test.json.ObjectContent<T>
Type Parameters:
T - the content type
All Implemented Interfaces:
AssertProvider<ObjectContentAssert<T>>

public final class ObjectContent<T> extends Object implements AssertProvider<ObjectContentAssert<T>>
Object content usually created from AbstractJsonMarshalTester. Generally used only to provide ObjectContentAssert to AssertJ assertThat calls.
Since:
1.4.0
Author:
Phillip Webb
  • Constructor Details

    • ObjectContent

      public ObjectContent(@Nullable ResolvableType type, T object)
      Create a new ObjectContent instance.
      Parameters:
      type - the type under test (or null if not known)
      object - the actual object content
  • Method Details