Skip to content

Commit 280fb44

Browse files
committed
Implement tests for LifecycleMethodExecutionExceptionHandler
Issue #1454
1 parent 2f89413 commit 280fb44

File tree

2 files changed

+589
-0
lines changed

2 files changed

+589
-0
lines changed

junit-jupiter-engine/src/test/java/org/junit/jupiter/api/extension/KitchenSinkExtension.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ public class KitchenSinkExtension implements
4040
AfterEachCallback,
4141
AfterAllCallback,
4242

43+
// Lifecycle methods exception handling
44+
LifecycleMethodExecutionExceptionHandler,
45+
4346
// Dependency Injection
4447
TestInstanceFactory,
4548
TestInstancePostProcessor,
@@ -88,6 +91,24 @@ public void afterEach(ExtensionContext context) {
8891
public void afterAll(ExtensionContext context) {
8992
}
9093

94+
// --- Lifecycle methods exception handling
95+
96+
@Override
97+
public void handleBeforeAllMethodExecutionException(ExtensionContext context, Throwable throwable) {
98+
}
99+
100+
@Override
101+
public void handleBeforeEachMethodExecutionException(ExtensionContext context, Throwable throwable) {
102+
}
103+
104+
@Override
105+
public void handleAfterEachMethodExecutionException(ExtensionContext context, Throwable throwable) {
106+
}
107+
108+
@Override
109+
public void handleAfterAllMethodExecutionException(ExtensionContext context, Throwable throwable) {
110+
}
111+
91112
// --- Dependency Injection ------------------------------------------------
92113

93114
@Override

0 commit comments

Comments
 (0)