File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
modules/swagger-core/src/test/java/io/swagger/v3/core/converting Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,9 @@ public void testFormatOfBigDecimal() {
70
70
final Map <String , Schema > models = ModelConverters .getInstance ().readAll (ModelWithoutScientificFields .class );
71
71
assertEquals (models .size (), 1 );
72
72
73
- String json = Json .pretty (models );
73
+ String json1 = Json .pretty (models );
74
74
75
- assertEquals ( normalizeLineEnds ( json ),
75
+ String json2 =
76
76
"{\n " +
77
77
" \" ModelWithoutScientificFields\" : {\n " +
78
78
" \" type\" : \" object\" ,\n " +
@@ -86,7 +86,11 @@ public void testFormatOfBigDecimal() {
86
86
" }\n " +
87
87
" }\n " +
88
88
" }\n " +
89
- "}" );
89
+ "}" ;
90
+ JSONObject jsonObj1 = new JSONObject (json1 );
91
+ JSONObject jsonObj2 = new JSONObject (json2 );
92
+
93
+ JSONAssert .assertEquals (jsonObj1 , jsonObj2 , true );
90
94
91
95
}
92
96
You can’t perform that action at this time.
0 commit comments