@@ -1231,30 +1231,30 @@ management>>), <<testcontext-support-classes,support classes>>, and
1231
1231
1232
1232
[[testcontext-key-abstractions]]
1233
1233
==== Key abstractions
1234
- The core of the framework consists of the `TestContext` and `TestContextManager` classes
1235
- and the `TestExecutionListener`, `ContextLoader`, and `SmartContextLoader` interfaces. A
1236
- `TestContextManager` is created on a per-test basis (e.g., for the execution of a single
1237
- test method in JUnit). The `TestContextManager` in turn manages a `TestContext` that
1238
- holds the context of the current test. The `TestContextManager` also updates the state
1239
- of the `TestContext` as the test progresses and delegates to ++TestExecutionListener++s,
1240
- which instrument the actual test execution by providing dependency injection, managing
1241
- transactions, and so on. A `ContextLoader` (or `SmartContextLoader`) is responsible for
1242
- loading an `ApplicationContext` for a given test class. Consult the javadocs and the
1243
- Spring test suite for further information and examples of various implementations.
1234
+ The core of the framework consists of the `TestContextManager` class and the
1235
+ `TestContext`, `TestExecutionListener`, and `SmartContextLoader` interfaces. A
1236
+ `TestContextManager` is created per test class (e.g., for the execution of all test
1237
+ methods within a single test class in JUnit). The `TestContextManager` in turn manages a
1238
+ `TestContext` that holds the context of the current test. The `TestContextManager` also
1239
+ updates the state of the `TestContext` as the test progresses and delegates to
1240
+ ++TestExecutionListener++s, which instrument the actual test execution by providing
1241
+ dependency injection, managing transactions, and so on. A `SmartContextLoader` is
1242
+ responsible for loading an `ApplicationContext` for a given test class. Consult the
1243
+ javadocs and the Spring test suite for further information and examples of various
1244
+ implementations.
1244
1245
1245
1246
* `TestContext`: Encapsulates the context in which a test is executed, agnostic of the
1246
1247
actual testing framework in use, and provides context management and caching support
1247
- for the test instance for which it is responsible. The `TestContext` also delegates to
1248
- a `ContextLoader` (or `SmartContextLoader`) to load an `ApplicationContext` if
1249
- requested.
1248
+ for the test instance for which it is responsible. The `TestContext` also delegates to a
1249
+ `SmartContextLoader` to load an `ApplicationContext` if requested.
1250
1250
* `TestContextManager`: The main entry point into the __Spring TestContext Framework__,
1251
1251
which manages a single `TestContext` and signals events to all registered
1252
1252
++TestExecutionListener++s at well-defined test execution points:
1253
- ** prior to any __before class methods__ of a particular testing framework
1254
- ** test instance preparation
1255
- ** prior to any __before methods__ of a particular testing framework
1256
- ** after any __after methods__ of a particular testing framework
1257
- ** after any __after class methods__ of a particular testing framework
1253
+ ** prior to any __before class__ or __before all__ methods of a particular testing framework
1254
+ ** test instance post-processing
1255
+ ** prior to any __before__ or __before each__ methods of a particular testing framework
1256
+ ** after any __after__ or __after each__ methods of a particular testing framework
1257
+ ** after any __after class__ or __after all__ methods of a particular testing framework
1258
1258
* `TestExecutionListener`: Defines a __listener__ API for reacting to test execution
1259
1259
events published by the `TestContextManager` with which the listener is registered. See
1260
1260
<<testcontext-tel-config>>.
0 commit comments