Browse Source

feat: Add test cases for JsonFormatter class

This class is in com.jayway.jsonpath.internal package.Add cases to cover the following:
-Simple Json Object, Json Object Array
-Json With Escaped Characters,Json Object with Escaped Characters
pull/1008/head
Vaibhav Ramchandani 1 year ago
parent
commit
ddaf298143
  1. 2
      json-path/src/test/java/com/jayway/jsonpath/internal/JsonFormatterTest.java

2
json-path/src/test/java/com/jayway/jsonpath/internal/JsonFormatterTest.java

@ -22,7 +22,7 @@ public class JsonFormatterTest {
// Test case for pretty printing a JSON object with escaped characters
// The input is a JSON object with escaped characters
// The expected output is the same JSON object with proper indentation
//
@Test
public void testPrettyPrint_JsonWithEscapedCharacters() {
JsonFormatter jsonFormatter = new JsonFormatter();

Loading…
Cancel
Save