Skip to content

Commit

Permalink
fixing #1292 test
Browse files Browse the repository at this point in the history
  • Loading branch information
gracekarina committed Mar 20, 2020
1 parent a84782e commit 831efae
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ public void testIssue_1292() {
SwaggerParseResult parseResult = openApiParser.readLocation("issue-1292/petstore.yml", null, options);

OpenAPI openAPI = parseResult.getOpenAPI();
Yaml.prettyPrint(openAPI);
//assertNotNull(openAPI.getComponents().getSchemas().get("val_Members_val_member"));
//assertNotNull(openAPI.getComponents().getSchemas().get("val_MemberProducts_val_product"));

assertNotNull(openAPI.getPaths().get("/pets").getGet().getResponses().get("200").getContent().get("application/json").getSchema().get$ref(), "#/components/schemas/Pets");
assertNotNull(openAPI.getPaths().get("/pets").getGet().getResponses().getDefault().getContent().get("application/json").getSchema().get$ref(), "#/components/schemas/Error");
assertNotNull(openAPI.getComponents().getSchemas().get("Pet"));
assertNotNull(openAPI.getComponents().getSchemas().get("Pets"));
assertNotNull(openAPI.getComponents().getSchemas().get("Error"));
}

@Test
Expand Down

0 comments on commit 831efae

Please sign in to comment.