From 37d0ea086f906943d98b2d2dd76c7a441e23347a Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 18 Dec 2018 13:14:33 +0100 Subject: [PATCH] Polishing --- .../java/org/junit/platform/testkit/engine/Executions.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/junit-platform-testkit/src/main/java/org/junit/platform/testkit/engine/Executions.java b/junit-platform-testkit/src/main/java/org/junit/platform/testkit/engine/Executions.java index 3d3c94ac86b2..2a8c5bbe2e09 100644 --- a/junit-platform-testkit/src/main/java/org/junit/platform/testkit/engine/Executions.java +++ b/junit-platform-testkit/src/main/java/org/junit/platform/testkit/engine/Executions.java @@ -230,11 +230,11 @@ private Stream finishedExecutions() { private Stream finishedExecutionsByStatus(Status status) { Preconditions.notNull(status, "Status must not be null"); return finishedExecutions()// - .filter(execution -> execution.getTerminationInfo().getExecutionResult().getStatus().equals(status)); + .filter(execution -> execution.getTerminationInfo().getExecutionResult().getStatus() == status); } private Stream executionsByTerminationInfo(Predicate predicate) { - return this.executions.stream().filter(execution -> predicate.test(execution.getTerminationInfo())); + return filter(execution -> predicate.test(execution.getTerminationInfo())); } /**