Skip to content

Commit

Permalink
unit test debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
YasasRangika committed Sep 5, 2024
1 parent cf49d60 commit 0a20eb6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,12 @@ public void testGetOASSecurityDefinitionForStore() throws Exception {
api.setTransports("https");
api.setContext("/oldapi");
api.setScopes(new HashSet<>());
String response = oas2Parser.getOASDefinitionForStore(api, swagger, hostWithSchemes, null);
String response = null;
try {
response = oas2Parser.getOASDefinitionForStore(api, swagger, hostWithSchemes, null);
} catch (Exception e) {
e.printStackTrace();
}
String oasDefinitionExpected = IOUtils.toString(
getClass().getClassLoader().getResourceAsStream("definitions" + File.separator + "oas2"
+ File.separator + "devportal" + File.separator
Expand Down

0 comments on commit 0a20eb6

Please sign in to comment.