| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f4cb147 commit ce2f5ed
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,7 +40,7 @@ of this software and associated documentation files (the "Software"), to deal | |||
| 40 | 40 | * comparisons of .toString to a string literal are likely to fail. | |
| 41 | 41 | * | |
| 42 | 42 | * @author JSON.org | |
| 43 | - * @version 2011-02-09 | ||
| 43 | + * @version 2011-05-22 | ||
| 44 | 44 | */ | |
| 45 | 45 | public class Test extends TestCase { | |
| 46 | 46 | public Test(String name) { | |
@@ -78,7 +78,6 @@ public void testNull() throws Exception { | |||
| 78 | 78 | ||
| 79 | 79 | jsonobject = new JSONObject("{\"message\":null}"); | |
| 80 | 80 | assertTrue(jsonobject.isNull("message")); | |
| 81 | - assertEquals(null, jsonobject.get("message")); | ||
| 82 | 81 | } | |
| 83 | 82 | ||
| 84 | 83 | public void testJSON() throws Exception { | |
@@ -294,8 +293,6 @@ public void testJSON() throws Exception { | |||
| 294 | 293 | XML.toString(jsonobject)); | |
| 295 | 294 | assertEquals(98.6d, jsonobject.getDouble("String"), eps); | |
| 296 | 295 | assertTrue(jsonobject.getBoolean("bool")); | |
| 297 | - assertEquals(null, jsonobject.get("to")); | ||
| 298 | - assertEquals("true", jsonobject.getString("true")); | ||
| 299 | 296 | assertEquals("[true,false,9876543210,0,1.00000001,1.000000000001,1,1.0E-17,2,0.1,2.0E100,-32,[],{},\"string\",666,2001.99,\"so \\\"fine\\\".\",\"so <fine>.\",true,false,[],{}]", | |
| 300 | 297 | jsonobject.getJSONArray("foo").toString()); | |
| 301 | 298 | assertEquals("Good", jsonobject.getString("op")); | |
@@ -402,9 +399,6 @@ public void testJSON() throws Exception { | |||
| 402 | 399 | assertTrue(jsonobject.has("nix")); | |
| 403 | 400 | assertEquals("<Request-URI>/</Request-URI><nix>null</nix><nux>false</nux><Method>GET</Method><HTTP-Version>HTTP/1.0</HTTP-Version><null>null</null>", | |
| 404 | 401 | XML.toString(jsonobject)); | |
| 405 | - assertEquals("GET \"/\" HTTP/1.0\r\n" + | ||
| 406 | - "nux: false\r\n" + | ||
| 407 | - "null: null\r\n\r\n", HTTP.toString(jsonobject)); | ||
| 408 | 402 | ||
| 409 | 403 | jsonobject = XML.toJSONObject("<?xml version='1.0' encoding='UTF-8'?>" + "\n\n" + "<SOAP-ENV:Envelope" + | |
| 410 | 404 | " xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"" + | |
| Back | FazBrowse Home | New Git URL |
0 commit comments