1
0
Fork 0
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:
Willem-Jan Zijderveld 2012-04-14 18:56:25 +02:00
parent d99ecc4646
commit f506531d18

View file

@ -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));