File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
modules/swagger-core/src/test/java/io/swagger/v3/core/converting Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 55import io .swagger .v3 .core .matchers .SerializationMatchers ;
66import io .swagger .v3 .core .oas .models .Person ;
77import io .swagger .v3 .core .util .Json ;
8+ import io .swagger .v3 .core .util .JsonAssert ;
89import io .swagger .v3 .core .util .OutputReplacer ;
910import io .swagger .v3 .core .util .ResourceUtils ;
1011import io .swagger .v3 .oas .models .Components ;
@@ -172,7 +173,7 @@ public void writeSpecWithParameterReferences() throws IOException {
172173
173174 final String swaggerJson = Json .mapper ().writeValueAsString (swagger );
174175 final OpenAPI rebuilt = Json .mapper ().readValue (swaggerJson , OpenAPI .class );
175- assertEquals ( Json .pretty (rebuilt ), Json .pretty (swagger ));
176+ JsonAssert . assertJsonEquals ( Json . mapper (), Json .pretty (rebuilt ), Json .pretty (swagger ));
176177 }
177178
178179 @ Test
You can’t perform that action at this time.
0 commit comments