File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
java/src/main/java/io/cucumber/junitxmlformatter Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 23
23
24
24
import static io .cucumber .messages .types .TestStepResultStatus .PASSED ;
25
25
import static java .util .concurrent .TimeUnit .SECONDS ;
26
- import static java .util .function .Function .identity ;
27
- import static java .util .stream .Collectors .counting ;
28
- import static java .util .stream .Collectors .groupingBy ;
29
26
import static java .util .stream .Collectors .toList ;
30
27
31
28
class XmlReportData {
@@ -56,14 +53,7 @@ void collect(Envelope envelope) {
56
53
}
57
54
58
55
Map <TestStepResultStatus , Long > getTestCaseStatusCounts () {
59
- // @formatter:off
60
- return query .findAllTestCaseStarted ().stream ()
61
- .map (query ::findMostSevereTestStepResulBy )
62
- .filter (Optional ::isPresent )
63
- .map (Optional ::get )
64
- .map (TestStepResult ::getStatus )
65
- .collect (groupingBy (identity (), counting ()));
66
- // @formatter:on
56
+ return query .countMostSevereTestStepResultStatus ();
67
57
}
68
58
69
59
int getTestCaseCount () {
You can’t perform that action at this time.
0 commit comments