Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e19aa81

Browse files
committedApr 22, 2023
Polish formatting
1 parent 6ea2547 commit e19aa81

File tree

1 file changed

+7
-1
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/asciidoc/features

1 file changed

+7
-1
lines changed
 

‎spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/testing.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,18 +250,24 @@ If such test needs access to an `MBeanServer`, consider marking it dirty as well
250250

251251
include::code:MyJmxTests[]
252252

253+
254+
253255
[[features.testing.spring-boot-applications.metrics]]
254256
==== Using Metrics
255257
Regardless of your classpath, meter registries, except the in-memory backed, are not auto-configured when using `@SpringBootTest`.
256258

257259
If you need to export metrics to a different backend as part of an integration test, annotate it with `@AutoConfigureObservability`.
258260

261+
262+
259263
[[features.testing.spring-boot-applications.tracing]]
260264
==== Using Tracing
261265
Regardless of your classpath, tracing is not auto-configured when using `@SpringBootTest`.
262266

263267
If you need tracing as part of an integration test, annotate it with `@AutoConfigureObservability`.
264268

269+
270+
265271
[[features.testing.spring-boot-applications.mocking-beans]]
266272
==== Mocking and Spying Beans
267273
When running tests, it is sometimes necessary to mock certain components within your application context.
@@ -280,7 +286,6 @@ If your test uses one of Spring Boot's test annotations (such as `@SpringBootTes
280286
To use this feature with a different arrangement, listeners must be explicitly added, as shown in the following example:
281287
282288
include::code:listener/MyTests[]
283-
284289
====
285290

286291
The following example replaces an existing `RemoteService` bean with a mock implementation:
@@ -493,6 +498,7 @@ When a MOCK environment is configured, you can also request an `HttpGraphQlTeste
493498
include::code:GraphQlIntegrationTests[]
494499

495500

501+
496502
[[features.testing.spring-boot-applications.autoconfigured-spring-data-cassandra]]
497503
==== Auto-configured Data Cassandra Tests
498504
You can use `@DataCassandraTest` to test Cassandra applications.

0 commit comments

Comments
 (0)
Please sign in to comment.