Skip to content

Commit 3744082

Browse files
izeyewilkinsona
authored andcommitted
Fix typos in JsonContentAssert failure messages
Closes gh-15752
1 parent 4167d6d commit 3744082

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ public JsonContentAssert isEqualTo(Object expected) {
9696
if (expected instanceof Resource) {
9797
return isEqualToJson((Resource) expected);
9898
}
99-
throw new AssertionError("Unsupport type for JSON assert " + expected.getClass());
99+
throw new AssertionError(
100+
"Unsupported type for JSON assert " + expected.getClass());
100101
}
101102

102103
/**
@@ -432,7 +433,8 @@ public JsonContentAssert isNotEqualTo(Object expected) {
432433
if (expected instanceof Resource) {
433434
return isNotEqualToJson((Resource) expected);
434435
}
435-
throw new AssertionError("Unsupport type for JSON assert " + expected.getClass());
436+
throw new AssertionError(
437+
"Unsupported type for JSON assert " + expected.getClass());
436438
}
437439

438440
/**

0 commit comments

Comments
 (0)