File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java/src/main/java/io/cucumber/junitxmlformatter Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,13 @@ private void writeSuiteAttributes(EscapingXmlStreamWriter writer) throws XMLStre
56
56
Map <TestStepResultStatus , Long > counts = data .getTestCaseStatusCounts ();
57
57
58
58
writer .writeAttribute ("tests" , String .valueOf (data .getTestCaseCount ()));
59
- writer .writeAttribute ("skipped" , counts .getOrDefault (SKIPPED , 0L ).toString ());
59
+ writer .writeAttribute ("skipped" , counts .get (SKIPPED ).toString ());
60
60
writer .writeAttribute ("failures" , String .valueOf (countFailures (counts )));
61
61
writer .writeAttribute ("errors" , "0" );
62
62
}
63
63
64
64
private static long countFailures (Map <TestStepResultStatus , Long > counts ) {
65
- return createNotPassedNotSkippedSet ().stream ().mapToLong (s -> counts . getOrDefault ( s , 0L ) ).sum ();
65
+ return createNotPassedNotSkippedSet ().stream ().mapToLong (counts :: get ).sum ();
66
66
}
67
67
68
68
private static EnumSet <TestStepResultStatus > createNotPassedNotSkippedSet () {
You can’t perform that action at this time.
0 commit comments