Class JsonContent<T>

  • Type Parameters:
    T - the source type that created the content
    All Implemented Interfaces:
    org.assertj.core.api.AssertProvider<JsonContentAssert>

    public final class JsonContent<T>
    extends Object
    implements org.assertj.core.api.AssertProvider<JsonContentAssert>
    JSON content created usually from a JSON tester. Generally used only to provideJsonContentAssert to AssertJ assertThat calls.
    Since:
    1.4.0
    • Constructor Detail

      • JsonContent

        public JsonContent​(Class<?> resourceLoadClass,
                           org.springframework.core.ResolvableType type,
                           String json)
        Create a new JsonContent instance.
        Parameters:
        resourceLoadClass - the source class used to load resources
        type - the type under test (or null if not known)
        json - the actual JSON content