private AssertProvider<ObjectContentAssert<Object>> forObject(final Object source) { return new AssertProvider<ObjectContentAssert<Object>>() { @Override public ObjectContentAssert<Object> assertThat() { return new ObjectContentAssert<Object>(source); } }; }
private AssertProvider<JsonContentAssert> forJson(final String json) { return new AssertProvider<JsonContentAssert>() { @Override public JsonContentAssert assertThat() { return new JsonContentAssert(JsonContentAssertTests.class, json); } }; }
/** * Delegate call to public static <T> T org.assertj.core.api.Assertions.assertThat(org.assertj.core.api.AssertProvider<T>) * {@link org.assertj.core.api.Assertions#assertThat(org.assertj.core.api.AssertProvider)} */ default <T> T assertThat(AssertProvider<T> component) { return Assertions.assertThat(component); }