Skip to content

Commit 5bd5c74

Browse files
committed
Polish TCF key abstractions section in reference manual
1 parent b6f99e3 commit 5bd5c74

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/asciidoc/testing.adoc

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,30 +1231,30 @@ management>>), <<testcontext-support-classes,support classes>>, and
12311231

12321232
[[testcontext-key-abstractions]]
12331233
==== 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.
12441245

12451246
* `TestContext`: Encapsulates the context in which a test is executed, agnostic of the
12461247
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.
12501250
* `TestContextManager`: The main entry point into the __Spring TestContext Framework__,
12511251
which manages a single `TestContext` and signals events to all registered
12521252
++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
12581258
* `TestExecutionListener`: Defines a __listener__ API for reacting to test execution
12591259
events published by the `TestContextManager` with which the listener is registered. See
12601260
<<testcontext-tel-config>>.

0 commit comments

Comments
 (0)