Skip to content

Commit

Permalink
Add override for #getFailedTests() (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored Dec 21, 2021
1 parent 6e77c10 commit 30ef955
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
import hudson.tasks.junit.TestResult;
import hudson.tasks.test.AbstractTestResultAction;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.kohsuke.stapler.HttpRedirect;
Expand Down Expand Up @@ -88,6 +90,15 @@ public int getFailCount() {
return getResult().getFailCount();
}

@Override
public List<? extends hudson.tasks.test.TestResult> getFailedTests() {
if (getResult() == null) {
return Collections.emptyList();
}

return getResult().getFailedTests();
}

@Override
public int getTotalCount() {
if (getResult() == null) {
Expand Down

0 comments on commit 30ef955

Please sign in to comment.