mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-02 11:05:28 -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.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…
x
Reference in New Issue
Block a user