Skip to content

Commit 3773d18

Browse files
author
Sun
committed
fix another test
1 parent dd33326 commit 3773d18

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/java/com/fasterxml/jackson/module/jsonSchema/TestUnwrapping.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ static class Name {
2828

2929
public void testUnwrapping() throws Exception
3030
{
31-
MAPPER.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true);
32-
JsonSchemaGenerator generator = new JsonSchemaGenerator(MAPPER);
31+
ObjectMapper mapper = new ObjectMapper();
32+
mapper.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true);
33+
JsonSchemaGenerator generator = new JsonSchemaGenerator(mapper);
3334
JsonSchema schema = generator.generateSchema(UnwrappingRoot.class);
3435

35-
String json = MAPPER.writeValueAsString(schema).replace('"', '\'');
36+
String json = mapper.writeValueAsString(schema).replace('"', '\'');
3637

3738
String EXP = "{'type':'object'," +
3839
"'id':'urn:jsonschema:com:fasterxml:jackson:module:jsonSchema:TestUnwrapping:UnwrappingRoot'," +

0 commit comments

Comments
 (0)