Skip to content

Commit 074ec97

Browse files
committed
Fix section formatting in the testing chapter
1 parent 9ede4af commit 074ec97

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

framework-docs/src/docs/asciidoc/testing.adoc

+7-8
Original file line numberDiff line numberDiff line change
@@ -4529,8 +4529,9 @@ annotations by specifying a Spring resource prefix:
45294529

45304530
Contrast the comments in this example with the previous example.
45314531

4532-
.[[testcontext-ctx-management-web-mocks]]Working with Web Mocks
4533-
--
4532+
[[testcontext-ctx-management-web-mocks]]
4533+
===== Working with Web Mocks
4534+
45344535
To provide comprehensive web testing support, the TestContext framework has a
45354536
`ServletTestExecutionListener` that is enabled by default. When testing against a
45364537
`WebApplicationContext`, this <<testcontext-key-abstractions, `TestExecutionListener`>>
@@ -4604,7 +4605,6 @@ managed per test method by the `ServletTestExecutionListener`.
46044605
//...
46054606
}
46064607
----
4607-
--
46084608

46094609
[[testcontext-ctx-management-caching]]
46104610
===== Context Caching
@@ -4759,7 +4759,7 @@ have different levels in a context hierarchy configured using different resource
47594759
The remaining JUnit Jupiter based examples in this section show common configuration
47604760
scenarios for integration tests that require the use of context hierarchies.
47614761

4762-
.Single test class with context hierarchy
4762+
**Single test class with context hierarchy**
47634763
--
47644764
`ControllerIntegrationTests` represents a typical integration testing scenario for a
47654765
Spring MVC web application by declaring a context hierarchy that consists of two levels,
@@ -4805,8 +4805,7 @@ lowest context in the hierarchy). The following listing shows this configuration
48054805
----
48064806
--
48074807

4808-
4809-
.Class hierarchy with implicit parent context
4808+
**Class hierarchy with implicit parent context**
48104809
--
48114810
The test classes in this example define a context hierarchy within a test class
48124811
hierarchy. `AbstractWebTests` declares the configuration for a root
@@ -4852,7 +4851,7 @@ configuration scenario:
48524851
----
48534852
--
48544853

4855-
.Class hierarchy with merged context hierarchy configuration
4854+
**Class hierarchy with merged context hierarchy configuration**
48564855
--
48574856
The classes in this example show the use of named hierarchy levels in order to merge the
48584857
configuration for specific levels in a context hierarchy. `BaseTests` defines two levels
@@ -4898,7 +4897,7 @@ The following listing shows this configuration scenario:
48984897
----
48994898
--
49004899

4901-
.Class hierarchy with overridden context hierarchy configuration
4900+
**Class hierarchy with overridden context hierarchy configuration**
49024901
--
49034902
In contrast to the previous example, this example demonstrates how to override the
49044903
configuration for a given named level in a context hierarchy by setting the

0 commit comments

Comments
 (0)