Skip to content

Commit

Permalink
Update ObjectSchemaTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihao11ui authored Oct 23, 2024
1 parent 9b2cebf commit b963137
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,15 +397,15 @@ public void equalsVerifier() {
public void toStringTest() {
JSONObject rawSchemaJson = loader.readObj("tostring/objectschema.json");
String actual = SchemaLoader.load(rawSchemaJson).toString();
assertThat(new JSONObject(actual), sameJsonAs(rawSchemaJson));
JSONAssert.assertEquals(rawSchemaJson.toString(), actual, false);
}

@Test
public void toStringNoExplicitType() {
JSONObject rawSchemaJson = loader.readObj("tostring/objectschema.json");
rawSchemaJson.remove("type");
String actual = SchemaLoader.load(rawSchemaJson).toString();
assertThat(new JSONObject(actual), sameJsonAs(rawSchemaJson));
JSONAssert.assertEquals(rawSchemaJson.toString(), actual, false);
}

@Test
Expand Down

0 comments on commit b963137

Please sign in to comment.