mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 07:50:52 -07:00
Changed Exception test to IOException
This commit is contained in:
parent
d99ecc4646
commit
f506531d18
1 changed files with 2 additions and 2 deletions
|
@ -1401,8 +1401,8 @@ public class TestJSONObject extends TestCase
|
|||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
map.put("abc", "123");
|
||||
assertEquals("{\"abc\":\"123\"}", JSONObject.wrap(map).toString());
|
||||
assertEquals("javax.print.PrintException",
|
||||
JSONObject.wrap(new javax.print.PrintException()));
|
||||
assertEquals("java.io.IOException",
|
||||
JSONObject.wrap(new java.io.IOException()));
|
||||
Class<?> d = this.getClass();
|
||||
assertEquals("class org.json.tests.TestJSONObject",
|
||||
JSONObject.wrap(d));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue