Skip to content

Commit 5b1f699

Browse files
authored
removed duplicate tests
1 parent 2eeb301 commit 5b1f699

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

modules/swagger-parser-v3/src/test/java/io/swagger/v3/parser/test/OpenAPIV3ParserTest.java

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2303,35 +2303,5 @@ public void testDuplicateHttpStatusCodes() {
23032303

23042304
}
23052305

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+
23372307
}

0 commit comments

Comments
 (0)