Skip to content

Commit

Permalink
increase integration test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
BenAlvo1 committed Jan 22, 2025
1 parent 3c69186 commit f9e5a29
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,11 @@ public void testGetResults_LatestScan() {

Assertions.assertNotNull(results);
}

@Test
public void testGetResults_NotExistingScanID_throwException() {
// Test with "" as scan ID which will be interpeted as latest scan
CompletableFuture<ResultGetState> getFuture = Results.getResults("not-existing-scan-id");
Assertions.assertThrows(Exception.class, getFuture::get);
}
}

0 comments on commit f9e5a29

Please sign in to comment.