1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

Merge pull request #53 from wjzijderveld/master

Changed Exception wrap test to more common exception
This commit is contained in:
Douglas Crockford 2012-04-14 14:18:56 -07:00
commit 319e3b9d84

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