Skip to content

Commit

Permalink
Bump version of coverage-model.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Nov 22, 2023
1 parent d5a1041 commit 7f74c83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/edu/hm/hafner/grading/TestScore.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private TestScore(final String id, final String name, final TestConfiguration co

private int sum(final Node testReport, final TestResult testResult) {
return testReport.getTestCases().stream()
.map(TestCase::getStatus)
.map(TestCase::getResult)
.filter(status -> status == testResult)
.mapToInt(i -> 1)
.sum();
Expand Down Expand Up @@ -118,7 +118,7 @@ public boolean hasFailures() {

public List<TestCase> getFailures() {
return getReport().getTestCases().stream()
.filter(testCase -> testCase.getStatus() == TestResult.FAILED).collect(Collectors.toList());
.filter(testCase -> testCase.getResult() == TestResult.FAILED).collect(Collectors.toList());
}

@Override @Generated
Expand Down

0 comments on commit 7f74c83

Please sign in to comment.