Merge pull request #15752 from Johnny Lim

* gh-15752:
  Polish "Fix typos in JsonContentAssert failure messages"
  Fix typos in JsonContentAssert failure messages
This commit is contained in:
Andy Wilkinson 2019-01-22 09:20:09 +00:00
commit acf9e8ac13

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2018 the original author or authors. * Copyright 2012-2019 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -96,7 +96,8 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
if (expected instanceof Resource) { if (expected instanceof Resource) {
return isEqualToJson((Resource) expected); 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) { if (expected instanceof Resource) {
return isNotEqualToJson((Resource) expected); return isNotEqualToJson((Resource) expected);
} }
throw new AssertionError("Unsupport type for JSON assert " + expected.getClass()); throw new AssertionError(
"Unsupported type for JSON assert " + expected.getClass());
} }
/** /**