|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2023 the original author or authors. |
| 2 | + * Copyright 2002-2025 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -389,8 +389,8 @@ public void beforeTestExecution(Object testInstance, Method testMethod) throws E
|
389 | 389 | * have executed, the first caught exception will be rethrown with any
|
390 | 390 | * subsequent exceptions {@linkplain Throwable#addSuppressed suppressed} in
|
391 | 391 | * the first exception.
|
392 |
| - * <p>Note that registered listeners will be executed in the opposite |
393 |
| - * order in which they were registered. |
| 392 | + * <p>Note that listeners will be executed in the opposite order in which they |
| 393 | + * were registered. |
394 | 394 | * @param testInstance the current test instance
|
395 | 395 | * @param testMethod the test method which has just been executed on the
|
396 | 396 | * test instance
|
@@ -459,7 +459,8 @@ public void afterTestExecution(Object testInstance, Method testMethod, @Nullable
|
459 | 459 | * have executed, the first caught exception will be rethrown with any
|
460 | 460 | * subsequent exceptions {@linkplain Throwable#addSuppressed suppressed} in
|
461 | 461 | * the first exception.
|
462 |
| - * <p>Note that registered listeners will be executed in the opposite |
| 462 | + * <p>Note that listeners will be executed in the opposite order in which they |
| 463 | + * were registered. |
463 | 464 | * @param testInstance the current test instance
|
464 | 465 | * @param testMethod the test method which has just been executed on the
|
465 | 466 | * test instance
|
@@ -517,7 +518,8 @@ public void afterTestMethod(Object testInstance, Method testMethod, @Nullable Th
|
517 | 518 | * have executed, the first caught exception will be rethrown with any
|
518 | 519 | * subsequent exceptions {@linkplain Throwable#addSuppressed suppressed} in
|
519 | 520 | * the first exception.
|
520 |
| - * <p>Note that registered listeners will be executed in the opposite |
| 521 | + * <p>Note that listeners will be executed in the opposite order in which they |
| 522 | + * were registered. |
521 | 523 | * @throws Exception if a registered TestExecutionListener throws an exception
|
522 | 524 | * @since 3.0
|
523 | 525 | * @see #getTestExecutionListeners()
|
|
0 commit comments