1- package com .relogiclabs .json . schema ;
1+ package com .relogiclabs .jschema ;
22
3- import com .relogiclabs .json . schema . internal .util .DebugUtilities ;
4- import com .relogiclabs .json . schema .tree .DataTree ;
5- import com .relogiclabs .json . schema .tree .JsonTree ;
6- import com .relogiclabs .json . schema .tree .RuntimeContext ;
7- import com .relogiclabs .json . schema .tree .SchemaTree ;
8- import com .relogiclabs .json . schema .tree .TreeType ;
3+ import com .relogiclabs .jschema . internal .util .LogHelper ;
4+ import com .relogiclabs .jschema .tree .DataTree ;
5+ import com .relogiclabs .jschema .tree .JsonTree ;
6+ import com .relogiclabs .jschema .tree .RuntimeContext ;
7+ import com .relogiclabs .jschema .tree .SchemaTree ;
8+ import com .relogiclabs .jschema .tree .TreeType ;
99import lombok .Getter ;
1010
11- import static com .relogiclabs .json . schema .message .MessageFormatter .JSON_ASSERTION ;
12- import static com .relogiclabs .json . schema .message .MessageFormatter .SCHEMA_ASSERTION ;
13- import static com .relogiclabs .json . schema .tree .TreeType .JSON_TREE ;
14- import static com .relogiclabs .json . schema .tree .TreeType .SCHEMA_TREE ;
11+ import static com .relogiclabs .jschema .message .MessageFormatter .JSON_ASSERTION ;
12+ import static com .relogiclabs .jschema .message .MessageFormatter .SCHEMA_ASSERTION ;
13+ import static com .relogiclabs .jschema .tree .TreeType .JSON_TREE ;
14+ import static com .relogiclabs .jschema .tree .TreeType .SCHEMA_TREE ;
1515
1616/**
1717 * The class provides assertion functionalities to validate JSON documents against
18- * a Schema or JSON.
18+ * a JSchema or JSON document .
1919 */
2020@ Getter
2121public class JsonAssert {
@@ -24,19 +24,19 @@ public class JsonAssert {
2424
2525 /**
2626 * Initializes a new instance of the {@link JsonAssert} class for the
27- * specified Schema string.
28- * @param schema A Schema string for validation or conformation
27+ * specified JSchema string.
28+ * @param schema A JSchema string for validation or conformation
2929 */
3030 public JsonAssert (String schema ) {
3131 this (schema , SCHEMA_TREE );
3232 }
3333
3434 /**
3535 * Initializes a new instance of the {@link JsonAssert} class for the specified
36- * {@code expected} string, which can be either a Schema or a JSON representation.
37- * @param expected An expected Schema or JSON string for validation or conformation
36+ * {@code expected} string, which can be either a JSchema or a JSON representation.
37+ * @param expected An expected JSchema or JSON string for validation or conformation
3838 * @param type The type of string provided by {@code expected}, indicating whether it represents
39- * a Schema or JSON. Use {@link TreeType#SCHEMA_TREE} for Schema and {@link TreeType#JSON_TREE}
39+ * a JSchema or JSON. Use {@link TreeType#SCHEMA_TREE} for JSchema and {@link TreeType#JSON_TREE}
4040 * for JSON.
4141 */
4242 public JsonAssert (String expected , TreeType type ) {
@@ -50,22 +50,22 @@ public JsonAssert(String expected, TreeType type) {
5050 }
5151
5252 /**
53- * Tests whether the input JSON string conforms to the expected Schema or JSON
53+ * Tests whether the input JSON string conforms to the expected JSchema or JSON
5454 * specified in the {@link JsonAssert} constructor.
5555 * @param json The actual input JSON to conform or validate
5656 */
5757 public void isValid (String json ) {
5858 runtime .clear ();
5959 var jsonTree = new JsonTree (runtime , json );
60- DebugUtilities . print (expectedTree , jsonTree );
60+ LogHelper . debug (expectedTree , jsonTree );
6161 if (!expectedTree .match (jsonTree ))
6262 throw new IllegalStateException ("Invalid runtime state" );
6363 }
6464
6565 /**
66- * Tests whether the specified JSON string conforms to the given Schema string
67- * and throws an exception if the JSON string does not conform to the Schema .
68- * @param schema The expected Schema to conform or validate
66+ * Tests whether the specified JSON string conforms to the given JSchema string
67+ * and throws an exception if the JSON string does not conform to the JSchema .
68+ * @param schema The expected JSchema to conform or validate
6969 * @param json The actual JSON to conform or validate
7070 */
7171 public static void isValid (String schema , String json ) {
0 commit comments