Merge pull request #95 from johnjaylward/StandardizeExceptionMessages

Test cases updates for standardized exception messages
This commit is contained in:
Sean Leary
2019-09-24 20:30:08 -05:00
committed by GitHub
3 changed files with 13 additions and 13 deletions

View File

@@ -133,9 +133,9 @@ public class JSONMLTest {
JSONML.toString(jsonArray);
assertTrue("Expecting an exception", false);
} catch (JSONException e) {
assertTrue("Expecting an exception message",
"JSONArray[0] not a string.".
equals(e.getMessage()));
assertEquals("Expecting an exception message",
"JSONArray[0] is not a String.",
e.getMessage());
}
}