@@ -2303,35 +2303,5 @@ public void testDuplicateHttpStatusCodes() {
2303
2303
2304
2304
}
2305
2305
2306
- public void testSampleParser () {
2307
- final String location = "src/test/resources/issue-1211.json" ;
2308
-
2309
- final ParseOptions options = new ParseOptions ();
2310
- options .setResolve (true );
2311
-
2312
- final OpenAPIV3Parser parser = new OpenAPIV3Parser ();
2313
- final SwaggerParseResult result = parser .readLocation (location , null , options );
2314
- System .out .println (result .getMessages ());
2315
- OpenAPI openAPI = result .getOpenAPI ();
2316
-
2317
- assertNotNull (result .getOpenAPI ());
2318
- assertTrue (result .getMessages ().size () > 0 );
2319
- assertEquals (result .getMessages ().get (0 ).contains ("attribute components.schemas.Pet. writeOnly and readOnly are both present" ), true );
2320
-
2321
- }
2322
-
2323
- @ Test
2324
- public void testDuplicateHttpStatusCodes () {
2325
- final String location = "src/test/resources/duplicateHttpStatusCodes.json" ;
2326
-
2327
- final ParseOptions options = new ParseOptions ();
2328
- options .setResolve (true );
2329
-
2330
- final OpenAPIV3Parser parser = new OpenAPIV3Parser ();
2331
- final SwaggerParseResult result = parser .readLocation (location , null , options );
2332
- assertNull (result .getOpenAPI ());
2333
- List <String > messages = result .getMessages ();
2334
- assertEquals (1 , messages .size ());
2335
- assertEquals (messages .get (0 ), "Duplicate field '200' in `src/test/resources/duplicateHttpStatusCodes.json`" );
2336
- }
2306
+
2337
2307
}
0 commit comments