File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/test/java/com/checkmarx/intellij/integration/standard/commands Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ public void testShowPredicates() {
3030
3131 CompletableFuture <ResultGetState > getFuture = Results .getResults (Environment .SCAN_ID );
3232 ResultGetState results = Assertions .assertDoesNotThrow ((ThrowingSupplier <ResultGetState >) getFuture ::get );
33- Result result = results .getResultOutput ().getResults ().get (0 );
33+ Result result = results .getResultOutput ().getResults ().stream ()
34+ .filter (res -> !res .getType ().equalsIgnoreCase (Constants .SCAN_TYPE_SCA ))
35+ .findFirst ()
36+ .orElseThrow (() -> new AssertionError ("No triage-supported results found (excluding SCA)" ));
3437 Assertions .assertDoesNotThrow (() -> triageShow (UUID .fromString (project .getId ()), result .getSimilarityId (), result .getType ()));
3538 }
3639
You can’t perform that action at this time.
0 commit comments