You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: framework-docs/modules/ROOT/pages/testing/annotations/integration-spring/annotation-contextconfiguration.adoc
Copy file name to clipboardExpand all lines: framework-docs/modules/ROOT/pages/testing/annotations/integration-spring/annotation-contextcustomizerfactories.adoc
Copy file name to clipboardExpand all lines: framework-docs/modules/ROOT/pages/testing/annotations/integration-spring/annotation-disabledinaotmode.adoc
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
[[spring-testing-annotation-disabledinaotmode]]
2
2
= `@DisabledInAotMode`
3
3
4
-
`@DisabledInAotMode` signals that an annotated test class is disabled in Spring AOT
4
+
`@DisabledInAotMode` signals that the annotated test class is disabled in Spring AOT
5
5
(ahead-of-time) mode, which means that the `ApplicationContext` for the test class will
6
6
not be processed for AOT optimizations at build time.
Copy file name to clipboardExpand all lines: framework-docs/modules/ROOT/pages/testing/annotations/integration-spring/annotation-dynamicpropertysource.adoc
Copy file name to clipboardExpand all lines: framework-docs/modules/ROOT/pages/testing/annotations/integration-spring/annotation-recordapplicationevents.adoc
+3-3
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
= `@RecordApplicationEvents`
3
3
:page-section-summary-toc: 1
4
4
5
-
`@RecordApplicationEvents` is a class-level annotation that is used to instruct the
6
-
_Spring TestContext Framework_ to record all application events that are published in the
7
-
`ApplicationContext` during the execution of a single test.
5
+
`@RecordApplicationEvents` is an annotation that can be applied to a test class to
6
+
instruct the _Spring TestContext Framework_ to record all application events that are
7
+
published in the `ApplicationContext` during the execution of a single test.
8
8
9
9
The recorded events can be accessed via the `ApplicationEvents` API within tests.
Copy file name to clipboardExpand all lines: framework-docs/modules/ROOT/pages/testing/annotations/integration-spring/annotation-testexecutionlisteners.adoc
Copy file name to clipboardExpand all lines: framework-docs/modules/ROOT/pages/testing/annotations/integration-spring/annotation-testpropertysource.adoc
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
[[spring-testing-annotation-testpropertysource]]
2
2
= `@TestPropertySource`
3
3
4
-
`@TestPropertySource` is a class-level annotation that you can use to configure the
5
-
locations of properties files and inlined properties to be added to the set of
4
+
`@TestPropertySource` is an annotation that can be applied to a test class to configure
5
+
the locations of properties files and inlined properties to be added to the set of
6
6
`PropertySources` in the `Environment` for an `ApplicationContext` loaded for an
Copy file name to clipboardExpand all lines: framework-docs/modules/ROOT/pages/testing/annotations/integration-spring/annotation-webappconfiguration.adoc
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
[[spring-testing-annotation-webappconfiguration]]
2
2
= `@WebAppConfiguration`
3
3
4
-
`@WebAppConfiguration` is a class-level annotation that you can use to declare that the
5
-
`ApplicationContext` loaded for an integration test should be a `WebApplicationContext`.
6
-
The mere presence of `@WebAppConfiguration` on a test class ensures that a
7
-
`WebApplicationContext` is loaded for the test, using the default value of
4
+
`@WebAppConfiguration` is an annotation that can be applied to a test class to declare
5
+
that the `ApplicationContext` loaded for an integration test should be a
6
+
`WebApplicationContext`. The mere presence of `@WebAppConfiguration` on a test class
7
+
ensures that a `WebApplicationContext` is loaded for the test, using the default value of
8
8
`"file:src/main/webapp"` for the path to the root of the web application (that is, the
9
9
resource base path). The resource base path is used behind the scenes to create a
10
10
`MockServletContext`, which serves as the `ServletContext` for the test's
0 commit comments