@@ -62,7 +62,10 @@ public void testDeserializeSimple() throws Exception {
62
62
String schemaStr = mapper .writeValueAsString (jsonSchema );
63
63
assertNotNull (schemaStr );
64
64
JsonSchema result = mapper .readValue (schemaStr , JsonSchema .class );
65
- assertEquals ("Trying to read from '" + schemaStr + "'" , jsonSchema , result );
65
+ String resultStr = mapper .writeValueAsString (result );
66
+ JsonNode node = mapper .readTree (schemaStr );
67
+ JsonNode finalNode = mapper .readTree (resultStr );
68
+ assertEquals (node , finalNode );
66
69
}
67
70
68
71
/**
@@ -75,14 +78,14 @@ public void testDeserializeFalseAndObjectAdditionalProperties() throws Exception
75
78
JsonSchema schema = mapper .readValue (schemaStr , JsonSchema .class );
76
79
String newSchemaStr = mapper .writeValueAsString (schema );
77
80
assertEquals (schemaStr .replaceAll ("\\ s" , "" ).length (), newSchemaStr .replaceAll ("\\ s" , "" ).length ());
81
+
78
82
JsonNode node = mapper .readTree (schemaStr );
79
83
JsonNode finalNode = mapper .readTree (newSchemaStr );
80
84
assertEquals (node , finalNode );
81
85
}
82
86
83
87
/**
84
- * Verifies that a true-valued additional property is
85
- * deserialized properly
88
+ * Verifies that a true-valued additional property is deserialized properly
86
89
*/
87
90
public void testDeserializeTrueAdditionalProperties () throws Exception {
88
91
ObjectMapper mapper = new ObjectMapper ();
0 commit comments