Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangoerdes committed Mar 11, 2024
1 parent 3a65212 commit 33f0ae5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import java.util.stream.Collectors;
import java.util.stream.Stream;

import static com.predic8.membrane.core.interceptor.Outcome.CONTINUE;
import static com.predic8.membrane.core.openapi.serviceproxy.OpenAPIPublisher.PATH;
import static java.lang.String.valueOf;

Expand Down Expand Up @@ -46,9 +45,6 @@ public Outcome handleRequest(Exchange exc) throws Exception {
return publisher.handleSwaggerUi(exc);
}




return publisher.handleOverviewOpenAPIDoc(exc, router, log);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,4 @@ private void checkHasValidProblemJSON(Exchange exc) throws IOException {
assertTrue(json.has("title"));
assertTrue(json.has("type"));
}

// TODO fix
@Test
public void getYaml() throws Exception {
exc.getRequest().setUri("/api-docs/fruit-shop-api-v2-0-0");
interceptor.handleRequest(exc);
assertTrue(exc.getResponse().getBodyAsStringDecoded().contains("html"));
}

}

0 comments on commit 33f0ae5

Please sign in to comment.