mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
Merge pull request #53 from wjzijderveld/master
Changed Exception wrap test to more common exception
This commit is contained in:
commit
319e3b9d84
@ -1401,8 +1401,8 @@ public class TestJSONObject extends TestCase
|
|||||||
Map<String, Object> map = new HashMap<String, Object>();
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
map.put("abc", "123");
|
map.put("abc", "123");
|
||||||
assertEquals("{\"abc\":\"123\"}", JSONObject.wrap(map).toString());
|
assertEquals("{\"abc\":\"123\"}", JSONObject.wrap(map).toString());
|
||||||
assertEquals("javax.print.PrintException",
|
assertEquals("java.io.IOException",
|
||||||
JSONObject.wrap(new javax.print.PrintException()));
|
JSONObject.wrap(new java.io.IOException()));
|
||||||
Class<?> d = this.getClass();
|
Class<?> d = this.getClass();
|
||||||
assertEquals("class org.json.tests.TestJSONObject",
|
assertEquals("class org.json.tests.TestJSONObject",
|
||||||
JSONObject.wrap(d));
|
JSONObject.wrap(d));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user