Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
predic8 committed Dec 20, 2024
1 parent e1474c3 commit 3eb9e03
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ void readAndParseSwagger2() throws IOException {
void swagger2ConversionNoticeAdded() throws IOException {
OpenAPIRecord rec = getOpenAPIRecord("fruitshop-swagger-2.0.json", "fruit-shop-api-swagger-2-v1-0-0");
String description = rec.api.getInfo().getDescription();
assertTrue(description.contains("Membrane API Gateway."));
assertTrue(description.contains("Membrane API Gateway"));
}

@Test
void swagger2ConversionNoticeAddedWithExistingDescription() throws IOException {
OpenAPIRecord rec = getOpenAPIRecord("fruitshop-swagger-2.0.json", "fruit-shop-api-swagger-2-v1-0-0");
String description = rec.api.getInfo().getDescription();
assertTrue(description.startsWith("This is a showcase"));
assertTrue(description.contains("Membrane API Gateway."));
assertTrue(description.contains("Membrane API Gateway"));
}

@Test
Expand Down

0 comments on commit 3eb9e03

Please sign in to comment.