mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-08 03:24:27 +08: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