diff --git a/spring-boot-test/src/main/java/org/springframework/boot/test/json/JsonContent.java b/spring-boot-test/src/main/java/org/springframework/boot/test/json/JsonContent.java index 946f8569eb..ab24334762 100644 --- a/spring-boot-test/src/main/java/org/springframework/boot/test/json/JsonContent.java +++ b/spring-boot-test/src/main/java/org/springframework/boot/test/json/JsonContent.java @@ -52,7 +52,11 @@ public final class JsonContent implements AssertProvider { this.json = json; } + /** + * Use {@link org.assertj.core.api.Assertions#assertThat AspectJ's assertThat} instead + */ @Override + @Deprecated public JsonContentAssert assertThat() { return new JsonContentAssert(this.resourceLoadClass, this.json); }