Skip to content

Commit 319e3b9

Browse files
Merge pull request stleary#53 from wjzijderveld/master
Changed Exception wrap test to more common exception
2 parents d99ecc4 + f506531 commit 319e3b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/TestJSONObject.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1401,8 +1401,8 @@ public void testWrap()
14011401
Map<String, Object> map = new HashMap<String, Object>();
14021402
map.put("abc", "123");
14031403
assertEquals("{\"abc\":\"123\"}", JSONObject.wrap(map).toString());
1404-
assertEquals("javax.print.PrintException",
1405-
JSONObject.wrap(new javax.print.PrintException()));
1404+
assertEquals("java.io.IOException",
1405+
JSONObject.wrap(new java.io.IOException()));
14061406
Class<?> d = this.getClass();
14071407
assertEquals("class org.json.tests.TestJSONObject",
14081408
JSONObject.wrap(d));

0 commit comments

Comments
 (0)