Updates tests for better error handling changes

This commit is contained in:
John J. Aylward
2017-06-08 02:25:59 -04:00
parent 93ca7b176f
commit c5e4b91fa4
3 changed files with 134 additions and 6 deletions

View File

@@ -242,7 +242,7 @@ public class JSONStringTest {
jsonArray.write(writer).toString();
fail("Expected an exception, got a String value");
} catch (JSONException e) {
assertTrue("Exception message does not match", "the exception value".equals(e.getMessage()));
assertEquals("Unable to write JSONArray value at index: 0", e.getMessage());
} catch(Exception e) {
fail("Expected JSONException");
} finally {