Test cases updates for standardized exception messages

This commit is contained in:
John J. Aylward
2019-09-17 10:47:16 -04:00
parent 6dcd82a72f
commit fb01575394
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());
}
}