Skip to content

Commit ba64d0f

Browse files
committed
Fix titles for Java tabs in Testing chapter of reference manual
1 parent 72f9125 commit ba64d0f

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

framework-docs/modules/ROOT/pages/testing/testcontext-framework/ctx-management/web-mocks.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ managed per test method by the `ServletTestExecutionListener`.
2020

2121
[tabs]
2222
======
23-
Injecting mocks::
23+
Java::
2424
+
2525
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
2626
----

framework-docs/modules/ROOT/pages/testing/testcontext-framework/ctx-management/web.adoc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ The remaining examples in this section show some of the various configuration op
2929
loading a `WebApplicationContext`. The following example shows the TestContext
3030
framework's support for convention over configuration:
3131

32+
.Conventions
3233
[tabs]
3334
======
34-
Conventions::
35+
Java::
3536
+
3637
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
3738
----
@@ -76,9 +77,10 @@ as the `WacTests` class or static nested `@Configuration` classes).
7677
The following example shows how to explicitly declare a resource base path with
7778
`@WebAppConfiguration` and an XML resource location with `@ContextConfiguration`:
7879

80+
.Default resource semantics
7981
[tabs]
8082
======
81-
Default resource semantics::
83+
Java::
8284
+
8385
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
8486
----
@@ -118,9 +120,10 @@ whereas `@ContextConfiguration` resource locations are classpath based.
118120
The following example shows that we can override the default resource semantics for both
119121
annotations by specifying a Spring resource prefix:
120122

123+
.Explicit resource semantics
121124
[tabs]
122125
======
123-
Explicit resource semantics::
126+
Java::
124127
+
125128
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
126129
----

framework-docs/modules/ROOT/pages/testing/testcontext-framework/web-scoped-beans.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ the provided `MockHttpServletRequest`. When the `loginUser()` method is invoked
4747
set parameters). We can then perform assertions against the results based on the known
4848
inputs for the username and password. The following listing shows how to do so:
4949

50+
.Request-scoped bean test
5051
[tabs]
5152
======
52-
Request-scoped bean test::
53+
Java::
5354
+
5455
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
5556
----
@@ -124,9 +125,10 @@ the user service has access to the session-scoped `userPreferences` for the curr
124125
`MockHttpSession`, and we can perform assertions against the results based on the
125126
configured theme. The following example shows how to do so:
126127

128+
.Session-scoped bean test
127129
[tabs]
128130
======
129-
Session-scoped bean test::
131+
Java::
130132
+
131133
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
132134
----

0 commit comments

Comments
 (0)