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); }