mirror of
https://github.com/stleary/JSON-java.git
synced 2026-01-24 00:03:17 -05:00
Updates tests for better error handling changes
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user