Commits

John Marsden committed c57a1e8

Update JSON Smart to be Maven based.

  • Participants
  • Parent commits e8c6029

Comments (0)

Files changed (3)

         <dependency>
             <groupId>net.minidev</groupId>
             <artifactId>json-smart</artifactId>
-            <version>1.0.6.2</version>
+            <version>1.0.6.3</version>
         </dependency>
         <dependency>
             <groupId>net.sourceforge</groupId>

File src/main/java/cc/plural/json/library/JSONSmartLibrary.java

 
     @Override
     public String getVersion() {
-        return "1.0.6.2";
+        return "1.0.6.3";
     }
 
     @Override

File src/main/java/cc/plural/json/test/StrictRFC4627ErrorConditions.java

             }
         });
 
+         add(new JSONStringParsingTest() {
+
+            @Override
+            public String evaluatePayload(JSONLibrary jsonPackage, JSONTestResult jsonResult)
+                    throws JSONParseStringInputException {
+                description = "Incorrect Char Following Escape";
+                input = "{\"v\":\"Before\\aAfter\"}";
+                expectedOutputError = true;
+                return jsonPackage.parseJSONString(input);
+            }
+        });
 
         add(new JSONStringParsingTest() {
 
             @Override
             public String evaluatePayload(JSONLibrary jsonPackage, JSONTestResult jsonResult)
                     throws JSONParseStringInputException {
+                description = "Backspace in JSON String";
+                input = "{\"v\":\"Before\bAfter\"}";
+                expectedOutputError = true;
+                return jsonPackage.parseJSONString(input);
+            }
+        });
+
+        add(new JSONStringParsingTest() {
+
+            @Override
+            public String evaluatePayload(JSONLibrary jsonPackage, JSONTestResult jsonResult)
+                    throws JSONParseStringInputException {
+                description = "Backspace in JSON String";
+                input = "{\"v\":\"Before\\u0008After\"}";
+                expectedOutputError = true;
+                return jsonPackage.parseJSONString(input);
+            }
+        });
+        
+        add(new JSONStringParsingTest() {
+
+            @Override
+            public String evaluatePayload(JSONLibrary jsonPackage, JSONTestResult jsonResult)
+                    throws JSONParseStringInputException {
+                description = "Invalid Char (BELL) JSON String";
+                input = "{\"v\":\"Before\\u0007After\"}";
+                expectedOutputError = true;
+                return jsonPackage.parseJSONString(input);
+            }
+        });
+        
+        add(new JSONStringParsingTest() {
+
+            @Override
+            public String evaluatePayload(JSONLibrary jsonPackage, JSONTestResult jsonResult)
+                    throws JSONParseStringInputException {
                 description = "Same Key Behaviour";
                 input = "{\"array\":[1,2],\"array\":[3,4]}";
                 expectedOutputError = true;