Skip to content

Commit fa57491

Browse files
Priyanshiwilkinsona
authored andcommitted
Deprecate JsonContent.assertThat()
See gh-9678
1 parent d62c26c commit fa57491

File tree

1 file changed

+4
-0
lines changed
  • spring-boot-test/src/main/java/org/springframework/boot/test/json

1 file changed

+4
-0
lines changed

spring-boot-test/src/main/java/org/springframework/boot/test/json/JsonContent.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ public JsonContent(Class<?> resourceLoadClass, ResolvableType type, String json)
5252
this.json = json;
5353
}
5454

55+
/**
56+
* Use {@link org.assertj.core.api.Assertions#assertThat AspectJ's assertThat} instead
57+
*/
5558
@Override
59+
@Deprecated
5660
public JsonContentAssert assertThat() {
5761
return new JsonContentAssert(this.resourceLoadClass, this.json);
5862
}

0 commit comments

Comments
 (0)