File tree Expand file tree Collapse file tree 4 files changed +3
-75
lines changed
main/java/io/cucumber/query
test/java/io/cucumber/query Expand file tree Collapse file tree 4 files changed +3
-75
lines changed Original file line number Diff line number Diff line change 5151 <dependency >
5252 <groupId >io.cucumber</groupId >
5353 <artifactId >messages</artifactId >
54- <version >[24.0 .0,29.0.0)</version >
54+ <version >[28.1 .0,29.0.0)</version >
5555 </dependency >
5656
5757 <dependency >
Original file line number Diff line number Diff line change 11package io .cucumber .query ;
22
33import io .cucumber .messages .Convertor ;
4+ import io .cucumber .messages .TestStepResultStatusComparator ;
45import io .cucumber .messages .types .Attachment ;
56import io .cucumber .messages .types .Envelope ;
67import io .cucumber .messages .types .Examples ;
4849
4950import static java .util .Collections .emptyList ;
5051import static java .util .Comparator .comparing ;
51- import static java .util .Comparator .nullsFirst ;
5252import static java .util .Objects .requireNonNull ;
5353import static java .util .Optional .ofNullable ;
5454import static java .util .function .Function .identity ;
7272public final class Query {
7373 private static final Map <TestStepResultStatus , Long > ZEROES_BY_TEST_STEP_RESULT_STATUSES = Arrays .stream (TestStepResultStatus .values ())
7474 .collect (Collectors .toMap (identity (), (s ) -> 0L ));
75- private final Comparator <TestStepResult > testStepResultComparator = nullsFirst ( comparing (o -> o . getStatus (). ordinal () ));
75+ private static final Comparator <TestStepResult > testStepResultComparator = comparing (TestStepResult :: getStatus , new TestStepResultStatusComparator ( ));
7676 private final Map <String , TestCaseStarted > testCaseStartedById = new LinkedHashMap <>();
7777 private final Map <String , TestCaseFinished > testCaseFinishedByTestCaseStartedId = new HashMap <>();
7878 private final Map <String , List <TestStepFinished >> testStepsFinishedByTestCaseStartedId = new HashMap <>();
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments