diff --git a/junit-platform-testkit/src/main/java/org/junit/platform/testkit/engine/TestExecutionResultConditions.java b/junit-platform-testkit/src/main/java/org/junit/platform/testkit/engine/TestExecutionResultConditions.java index 9e149c4d09ba..c4da92696d62 100644 --- a/junit-platform-testkit/src/main/java/org/junit/platform/testkit/engine/TestExecutionResultConditions.java +++ b/junit-platform-testkit/src/main/java/org/junit/platform/testkit/engine/TestExecutionResultConditions.java @@ -64,7 +64,7 @@ public static Condition throwable(Condition cause(Condition condition) { - return new Condition<>(throwable -> condition.matches(throwable.getCause()), "nested throwable matches %s", + return new Condition<>(throwable -> condition.matches(throwable.getCause()), "throwable cause matches %s", condition); }