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
@@ -454,7 +454,7 @@ You can use `@DataCassandraTest` to test Cassandra applications.
454
454
By default, it configures a `CassandraTemplate`, scans for `@Table` classes, and configures Spring Data Cassandra repositories.
455
455
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataCassandraTest` annotation is used.
456
456
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
457
-
(For more about using Cassandra with Spring Boot, see "<<data#data.nosql.cassandra>>", earlier in this chapter.)
457
+
(For more about using Cassandra with Spring Boot, see "<<data#data.nosql.cassandra>>".)
458
458
459
459
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>>.
460
460
@@ -558,7 +558,7 @@ If you prefer your test to run against a real database, you can use the `@AutoCo
558
558
You can use `@JooqTest` in a similar fashion as `@JdbcTest` but for jOOQ-related tests.
559
559
As jOOQ relies heavily on a Java-based schema that corresponds with the database schema, the existing `DataSource` is used.
560
560
If you want to replace it with an in-memory database, you can use `@AutoConfigureTestDatabase` to override those settings.
561
-
(For more about using jOOQ with Spring Boot, see "<<data#data.sql.jooq>>", earlier in this chapter.)
561
+
(For more about using jOOQ with Spring Boot, see "<<data#data.sql.jooq>>".)
562
562
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@JooqTest` annotation is used.
563
563
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
564
564
@@ -583,7 +583,7 @@ You can use `@DataMongoTest` to test MongoDB applications.
583
583
By default, it configures an in-memory embedded MongoDB (if available), configures a `MongoTemplate`, scans for `@Document` classes, and configures Spring Data MongoDB repositories.
584
584
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataMongoTest` annotation is used.
585
585
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
586
-
(For more about using MongoDB with Spring Boot, see "<<data#data.nosql.mongodb>>", earlier in this chapter.)
586
+
(For more about using MongoDB with Spring Boot, see "<<data#data.nosql.mongodb>>".)
587
587
588
588
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>>.
589
589
@@ -610,7 +610,7 @@ You can use `@DataNeo4jTest` to test Neo4j applications.
610
610
By default, it scans for `@Node` classes, and configures Spring Data Neo4j repositories.
611
611
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataNeo4jTest` annotation is used.
612
612
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
613
-
(For more about using Neo4J with Spring Boot, see "<<data#data.nosql.neo4j>>", earlier in this chapter.)
613
+
(For more about using Neo4J with Spring Boot, see "<<data#data.nosql.neo4j>>".)
614
614
615
615
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>>.
616
616
@@ -641,7 +641,7 @@ You can use `@DataRedisTest` to test Redis applications.
641
641
By default, it scans for `@RedisHash` classes and configures Spring Data Redis repositories.
642
642
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataRedisTest` annotation is used.
643
643
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
644
-
(For more about using Redis with Spring Boot, see "<<data#data.nosql.redis>>", earlier in this chapter.)
644
+
(For more about using Redis with Spring Boot, see "<<data#data.nosql.redis>>".)
645
645
646
646
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>>.
647
647
@@ -660,7 +660,7 @@ You can use `@DataLdapTest` to test LDAP applications.
660
660
By default, it configures an in-memory embedded LDAP (if available), configures an `LdapTemplate`, scans for `@Entry` classes, and configures Spring Data LDAP repositories.
661
661
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataLdapTest` annotation is used.
662
662
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
663
-
(For more about using LDAP with Spring Boot, see "<<data#data.nosql.ldap>>", earlier in this chapter.)
663
+
(For more about using LDAP with Spring Boot, see "<<data#data.nosql.ldap>>".)
664
664
665
665
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
793
793
You can use `@WebServiceClientTest` to test applications that call web services using the Spring Web Services project.
794
794
By default, it configures a mock `WebServiceServer` bean and automatically customizes your `WebServiceTemplateBuilder`.
795
-
(For more about using Web Services with Spring Boot, see "<<io#io.webservices>>", earlier in this chapter.)
795
+
(For more about using Web Services with Spring Boot, see "<<io#io.webservices>>".)
796
796
797
797
798
798
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
811
811
You can use `@WebServiceServerTest` to test applications that implement web services using the Spring Web Services project.
812
812
By default, it configures a `MockWebServiceClient` bean that can be used to call your web service endpoints.
813
-
(For more about using Web Services with Spring Boot, see "<<io#io.webservices>>", earlier in this chapter.)
813
+
(For more about using Web Services with Spring Boot, see "<<io#io.webservices>>".)
814
814
815
815
816
816
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