Skip to content

Commit 53909a5

Browse files
committed
Polish key abstractions section for the TCF
1 parent 1dfc0ff commit 53909a5

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/asciidoc/testing.adoc

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,8 +1226,8 @@ one to write so-called __POJO test classes__. POJO test classes are not required
12261226
extend a particular class hierarchy.
12271227

12281228
The following section provides an overview of the internals of the TestContext
1229-
framework. If you are only interested in using the framework and not necessarily
1230-
interested in extending it with your own custom listeners or custom loaders, feel free
1229+
framework. If you are only interested in _using_ the framework and not necessarily
1230+
interested in _extending_ it with your own custom listeners or custom loaders, feel free
12311231
to go directly to the configuration (<<testcontext-ctx-management,context management>>,
12321232
<<testcontext-fixture-di,dependency injection>>, <<testcontext-tx,transaction
12331233
management>>), <<testcontext-support-classes,support classes>>, and
@@ -1242,9 +1242,9 @@ The core of the framework consists of the `TestContextManager` class and the
12421242
methods within a single test class in JUnit 4). The `TestContextManager` in turn manages a
12431243
`TestContext` that holds the context of the current test. The `TestContextManager` also
12441244
updates the state of the `TestContext` as the test progresses and delegates to
1245-
++TestExecutionListener++s, which instrument the actual test execution by providing
1246-
dependency injection, managing transactions, and so on. A `SmartContextLoader` is
1247-
responsible for loading an `ApplicationContext` for a given test class. Consult the
1245+
`TestExecutionListener` implementations, which instrument the actual test execution by
1246+
providing dependency injection, managing transactions, and so on. A `SmartContextLoader`
1247+
is responsible for loading an `ApplicationContext` for a given test class. Consult the
12481248
javadocs and the Spring test suite for further information and examples of various
12491249
implementations.
12501250

@@ -1253,14 +1253,14 @@ implementations.
12531253
for the test instance for which it is responsible. The `TestContext` also delegates to a
12541254
`SmartContextLoader` to load an `ApplicationContext` if requested.
12551255
* `TestContextManager`: The main entry point into the __Spring TestContext Framework__,
1256-
which manages a single `TestContext` and signals events to all registered
1257-
++TestExecutionListener++s at well-defined test execution points:
1256+
which manages a single `TestContext` and signals events to each registered
1257+
`TestExecutionListener` at well-defined test execution points:
12581258
** prior to any __before class__ or __before all__ methods of a particular testing framework
12591259
** test instance post-processing
12601260
** prior to any __before__ or __before each__ methods of a particular testing framework
12611261
** after any __after__ or __after each__ methods of a particular testing framework
12621262
** after any __after class__ or __after all__ methods of a particular testing framework
1263-
* `TestExecutionListener`: Defines a __listener__ API for reacting to test execution
1263+
* `TestExecutionListener`: Defines the API for reacting to test execution
12641264
events published by the `TestContextManager` with which the listener is registered. See
12651265
<<testcontext-tel-config>>.
12661266
* `ContextLoader`: Strategy interface introduced in Spring 2.5 for loading an
@@ -1271,7 +1271,7 @@ implementations.
12711271

12721272
Implement `SmartContextLoader` instead of this interface in order to provide support for
12731273
annotated classes, active bean definition profiles, test property sources, context
1274-
hierarchies, and ++WebApplicationContext++s.
1274+
hierarchies, and `WebApplicationContext` support.
12751275

12761276
* `SmartContextLoader`: Extension of the `ContextLoader` interface introduced in Spring
12771277
3.1.
@@ -1316,9 +1316,8 @@ locations__.
13161316
** `GenericPropertiesContextLoader`: loads a standard `ApplicationContext` from Java
13171317
Properties files.
13181318

1319-
The following sections explain how to configure the TestContext framework through
1320-
annotations and provide working examples of how to write unit and integration tests with
1321-
the framework.
1319+
The following sections explain how to configure the TestContext framework and provide
1320+
working examples of how to write unit and integration tests with the framework.
13221321

13231322
[[testcontext-tel-config]]
13241323
==== TestExecutionListener configuration

0 commit comments

Comments
 (0)