Fix typos in JsonContentAssert failure messages

Closes gh-15752
This commit is contained in:
Johnny Lim 2019-01-22 09:02:49 +09:00 committed by Andy Wilkinson
parent 4167d6d475
commit 3744082996

View File

@ -96,7 +96,8 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
if (expected instanceof Resource) {
return isEqualToJson((Resource) expected);
}
throw new AssertionError("Unsupport type for JSON assert " + expected.getClass());
throw new AssertionError(
"Unsupported type for JSON assert " + expected.getClass());
}
/**
@ -432,7 +433,8 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
if (expected instanceof Resource) {
return isNotEqualToJson((Resource) expected);
}
throw new AssertionError("Unsupport type for JSON assert " + expected.getClass());
throw new AssertionError(
"Unsupported type for JSON assert " + expected.getClass());
}
/**