@@ -250,18 +250,24 @@ If such test needs access to an `MBeanServer`, consider marking it dirty as well
250250
251251include::code:MyJmxTests[]
252252
253+
254+
253255[[features.testing.spring-boot-applications.metrics]]
254256==== Using Metrics
255257Regardless of your classpath, meter registries, except the in-memory backed, are not auto-configured when using `@SpringBootTest`.
256258
257259If 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
261265Regardless of your classpath, tracing is not auto-configured when using `@SpringBootTest`.
262266
263267If 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
267273When 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
280286To use this feature with a different arrangement, listeners must be explicitly added, as shown in the following example:
281287
282288include::code:listener/MyTests[]
283-
284289====
285290
286291The 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
493498include::code:GraphQlIntegrationTests[]
494499
495500
501+
496502[[features.testing.spring-boot-applications.autoconfigured-spring-data-cassandra]]
497503==== Auto-configured Data Cassandra Tests
498504You can use `@DataCassandraTest` to test Cassandra applications.
0 commit comments