|
21 | 21 | * test execution events published by the {@link TestContextManager} with which
|
22 | 22 | * the listener is registered.
|
23 | 23 | *
|
| 24 | + * <p>Note that not all testing frameworks support all lifecycle callbacks defined |
| 25 | + * in this API. For example, {@link #beforeTestExecution} and |
| 26 | + * {@link #afterTestExecution} are not supported in conjunction with JUnit 4 when |
| 27 | + * using the {@link org.springframework.test.context.junit4.rules.SpringMethodRule |
| 28 | + * SpringMethodRule}. |
| 29 | + * |
24 | 30 | * <p>This interface provides empty {@code default} implementations for all methods.
|
25 | 31 | * Concrete implementations can therefore choose to override only those methods
|
26 | 32 | * suitable for the task at hand.
|
@@ -65,8 +71,6 @@ public interface TestExecutionListener {
|
65 | 71 | * the class.
|
66 | 72 | * <p>This method should be called immediately before framework-specific
|
67 | 73 | * <em>before class</em> lifecycle callbacks.
|
68 |
| - * <p>If a given testing framework does not support <em>before class</em> |
69 |
| - * lifecycle callbacks, this method will not be called for that framework. |
70 | 74 | * <p>The default implementation is <em>empty</em>. Can be overridden by
|
71 | 75 | * concrete classes as necessary.
|
72 | 76 | * @param testContext the test context for the test; never {@code null}
|
@@ -186,8 +190,6 @@ default void afterTestMethod(TestContext testContext) throws Exception {
|
186 | 190 | * the class.
|
187 | 191 | * <p>This method should be called immediately after framework-specific
|
188 | 192 | * <em>after class</em> lifecycle callbacks.
|
189 |
| - * <p>If a given testing framework does not support <em>after class</em> |
190 |
| - * lifecycle callbacks, this method will not be called for that framework. |
191 | 193 | * <p>The default implementation is <em>empty</em>. Can be overridden by
|
192 | 194 | * concrete classes as necessary.
|
193 | 195 | * @param testContext the test context for the test; never {@code null}
|
|
0 commit comments