Commit acf9e8ac authored by Andy Wilkinson's avatar Andy Wilkinson

Merge pull request #15752 from Johnny Lim

* gh-15752:
  Polish "Fix typos in JsonContentAssert failure messages"
  Fix typos in JsonContentAssert failure messages
parents 4167d6d4 e15e140f
/*
* 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");
* 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) {
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());
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment