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: spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/testing.adoc
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -411,7 +411,7 @@ You can use `@DataCassandraTest` to test Cassandra applications.
411
411
By default, it configures a `CassandraTemplate`, scans for `@Table` classes, and configures Spring Data Cassandra repositories.
412
412
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataCassandraTest` annotation is used.
413
413
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
414
-
(For more about using Cassandra with Spring Boot, see "<<data#data.nosql.cassandra>>", earlier in this chapter.)
414
+
(For more about using Cassandra with Spring Boot, see "<<data#data.nosql.cassandra>>".)
415
415
416
416
TIP: A list of the auto-configuration settings that are enabled by `@DataCassandraTest` can be <<test-auto-configuration#appendix.test-auto-configuration,found in the appendix>>.
417
417
@@ -532,7 +532,7 @@ If you prefer your test to run against a real database, you can use the `@AutoCo
532
532
You can use `@JooqTest` in a similar fashion as `@JdbcTest` but for jOOQ-related tests.
533
533
As jOOQ relies heavily on a Java-based schema that corresponds with the database schema, the existing `DataSource` is used.
534
534
If you want to replace it with an in-memory database, you can use `@AutoConfigureTestDatabase` to override those settings.
535
-
(For more about using jOOQ with Spring Boot, see "<<data#data.sql.jooq>>", earlier in this chapter.)
535
+
(For more about using jOOQ with Spring Boot, see "<<data#data.sql.jooq>>".)
536
536
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@JooqTest` annotation is used.
537
537
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
538
538
@@ -554,7 +554,7 @@ You can use `@DataMongoTest` to test MongoDB applications.
554
554
By default, it configures a `MongoTemplate`, scans for `@Document` classes, and configures Spring Data MongoDB repositories.
555
555
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataMongoTest` annotation is used.
556
556
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
557
-
(For more about using MongoDB with Spring Boot, see "<<data#data.nosql.mongodb>>", earlier in this chapter.)
557
+
(For more about using MongoDB with Spring Boot, see "<<data#data.nosql.mongodb>>".)
558
558
559
559
TIP: A list of the auto-configuration settings that are enabled by `@DataMongoTest` can be <<test-auto-configuration#appendix.test-auto-configuration,found in the appendix>>.
560
560
@@ -570,7 +570,7 @@ You can use `@DataNeo4jTest` to test Neo4j applications.
570
570
By default, it scans for `@Node` classes, and configures Spring Data Neo4j repositories.
571
571
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataNeo4jTest` annotation is used.
572
572
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
573
-
(For more about using Neo4J with Spring Boot, see "<<data#data.nosql.neo4j>>", earlier in this chapter.)
573
+
(For more about using Neo4J with Spring Boot, see "<<data#data.nosql.neo4j>>".)
574
574
575
575
TIP: A list of the auto-configuration settings that are enabled by `@DataNeo4jTest` can be <<test-auto-configuration#appendix.test-auto-configuration,found in the appendix>>.
576
576
@@ -595,7 +595,7 @@ You can use `@DataRedisTest` to test Redis applications.
595
595
By default, it scans for `@RedisHash` classes and configures Spring Data Redis repositories.
596
596
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataRedisTest` annotation is used.
597
597
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
598
-
(For more about using Redis with Spring Boot, see "<<data#data.nosql.redis>>", earlier in this chapter.)
598
+
(For more about using Redis with Spring Boot, see "<<data#data.nosql.redis>>".)
599
599
600
600
TIP: A list of the auto-configuration settings that are enabled by `@DataRedisTest` can be <<test-auto-configuration#appendix.test-auto-configuration,found in the appendix>>.
601
601
@@ -611,7 +611,7 @@ You can use `@DataLdapTest` to test LDAP applications.
611
611
By default, it configures an in-memory embedded LDAP (if available), configures an `LdapTemplate`, scans for `@Entry` classes, and configures Spring Data LDAP repositories.
612
612
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataLdapTest` annotation is used.
613
613
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
614
-
(For more about using LDAP with Spring Boot, see "<<data#data.nosql.ldap>>", earlier in this chapter.)
614
+
(For more about using LDAP with Spring Boot, see "<<data#data.nosql.ldap>>".)
615
615
616
616
TIP: A list of the auto-configuration settings that are enabled by `@DataLdapTest` can be <<test-auto-configuration#appendix.test-auto-configuration,found in the appendix>>.
===== Auto-configured Spring Web Services Client Tests
711
711
You can use `@WebServiceClientTest` to test applications that call web services using the Spring Web Services project.
712
712
By default, it configures a mock `WebServiceServer` bean and automatically customizes your `WebServiceTemplateBuilder`.
713
-
(For more about using Web Services with Spring Boot, see "<<io#io.webservices>>", earlier in this chapter.)
713
+
(For more about using Web Services with Spring Boot, see "<<io#io.webservices>>".)
714
714
715
715
716
716
TIP: A list of the auto-configuration settings that are enabled by `@WebServiceClientTest` can be <<test-auto-configuration#appendix.test-auto-configuration,found in the appendix>>.
===== Auto-configured Spring Web Services Server Tests
726
726
You can use `@WebServiceServerTest` to test applications that implement web services using the Spring Web Services project.
727
727
By default, it configures a `MockWebServiceClient` bean that can be used to call your web service endpoints.
728
-
(For more about using Web Services with Spring Boot, see "<<io#io.webservices>>", earlier in this chapter.)
728
+
(For more about using Web Services with Spring Boot, see "<<io#io.webservices>>".)
729
729
730
730
731
731
TIP: A list of the auto-configuration settings that are enabled by `@WebServiceServerTest` can be <<test-auto-configuration#appendix.test-auto-configuration,found in the appendix>>.
0 commit comments