mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 11:25:30 -04:00
Updates exception expected message
This commit is contained in:
parent
52ecc89702
commit
bde6ba1c52
@ -90,7 +90,7 @@ public class JSONArrayTest {
|
|||||||
assertNull("Should throw an exception", new JSONArray("["));
|
assertNull("Should throw an exception", new JSONArray("["));
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
assertEquals("Expected an exception message",
|
assertEquals("Expected an exception message",
|
||||||
"A JSONArray text must start with '[' at 0 [character 1 line 1]",
|
"Expected a ',' or ']' at 1 [character 2 line 1]",
|
||||||
e.getMessage());
|
e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user