From 7d6d3c01da4a14f977f278cca3ffc09c74675c2a Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 14 Dec 2018 13:47:19 +0100 Subject: [PATCH] Introduce EventConditions.abortedWithReason() varargs variant Issue: #1621 --- .../org/junit/platform/testkit/engine/EventConditions.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/junit-platform-testkit/src/main/java/org/junit/platform/testkit/engine/EventConditions.java b/junit-platform-testkit/src/main/java/org/junit/platform/testkit/engine/EventConditions.java index 8d53b6c53356..c0ea72f832ef 100644 --- a/junit-platform-testkit/src/main/java/org/junit/platform/testkit/engine/EventConditions.java +++ b/junit-platform-testkit/src/main/java/org/junit/platform/testkit/engine/EventConditions.java @@ -136,6 +136,11 @@ public static Condition abortedWithReason(Condition ca return finishedWithCause(ABORTED, causeCondition); } + @SafeVarargs + public static Condition abortedWithReason(Condition... conditions) { + return finishedWithCause(ABORTED, conditions); + } + public static Condition finishedWithFailure(Condition causeCondition) { return finishedWithCause(FAILED, causeCondition); }