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
@@ -469,7 +469,7 @@ You can use `@DataCassandraTest` to test Cassandra applications.
469
469
By default, it configures a `CassandraTemplate`, scans for `@Table` classes, and configures Spring Data Cassandra repositories.
470
470
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataCassandraTest` annotation is used.
471
471
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
472
-
(For more about using Cassandra with Spring Boot, see "<<data#data.nosql.cassandra>>", earlier in this chapter.)
472
+
(For more about using Cassandra with Spring Boot, see "<<data#data.nosql.cassandra>>".)
473
473
474
474
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>>.
475
475
@@ -590,7 +590,7 @@ If you prefer your test to run against a real database, you can use the `@AutoCo
590
590
You can use `@JooqTest` in a similar fashion as `@JdbcTest` but for jOOQ-related tests.
591
591
As jOOQ relies heavily on a Java-based schema that corresponds with the database schema, the existing `DataSource` is used.
592
592
If you want to replace it with an in-memory database, you can use `@AutoConfigureTestDatabase` to override those settings.
593
-
(For more about using jOOQ with Spring Boot, see "<<data#data.sql.jooq>>", earlier in this chapter.)
593
+
(For more about using jOOQ with Spring Boot, see "<<data#data.sql.jooq>>".)
594
594
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@JooqTest` annotation is used.
595
595
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
596
596
@@ -612,7 +612,7 @@ You can use `@DataMongoTest` to test MongoDB applications.
612
612
By default, it configures an in-memory embedded MongoDB (if available), configures a `MongoTemplate`, scans for `@Document` classes, and configures Spring Data MongoDB repositories.
613
613
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataMongoTest` annotation is used.
614
614
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
615
-
(For more about using MongoDB with Spring Boot, see "<<data#data.nosql.mongodb>>", earlier in this chapter.)
615
+
(For more about using MongoDB with Spring Boot, see "<<data#data.nosql.mongodb>>".)
616
616
617
617
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>>.
618
618
@@ -633,7 +633,7 @@ You can use `@DataNeo4jTest` to test Neo4j applications.
633
633
By default, it scans for `@Node` classes, and configures Spring Data Neo4j repositories.
634
634
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataNeo4jTest` annotation is used.
635
635
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
636
-
(For more about using Neo4J with Spring Boot, see "<<data#data.nosql.neo4j>>", earlier in this chapter.)
636
+
(For more about using Neo4J with Spring Boot, see "<<data#data.nosql.neo4j>>".)
637
637
638
638
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>>.
639
639
@@ -658,7 +658,7 @@ You can use `@DataRedisTest` to test Redis applications.
658
658
By default, it scans for `@RedisHash` classes and configures Spring Data Redis repositories.
659
659
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataRedisTest` annotation is used.
660
660
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
661
-
(For more about using Redis with Spring Boot, see "<<data#data.nosql.redis>>", earlier in this chapter.)
661
+
(For more about using Redis with Spring Boot, see "<<data#data.nosql.redis>>".)
662
662
663
663
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>>.
664
664
@@ -674,7 +674,7 @@ You can use `@DataLdapTest` to test LDAP applications.
674
674
By default, it configures an in-memory embedded LDAP (if available), configures an `LdapTemplate`, scans for `@Entry` classes, and configures Spring Data LDAP repositories.
675
675
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataLdapTest` annotation is used.
676
676
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
677
-
(For more about using LDAP with Spring Boot, see "<<data#data.nosql.ldap>>", earlier in this chapter.)
677
+
(For more about using LDAP with Spring Boot, see "<<data#data.nosql.ldap>>".)
678
678
679
679
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
774
774
You can use `@WebServiceClientTest` to test applications that call web services using the Spring Web Services project.
775
775
By default, it configures a mock `WebServiceServer` bean and automatically customizes your `WebServiceTemplateBuilder`.
776
-
(For more about using Web Services with Spring Boot, see "<<io#io.webservices>>", earlier in this chapter.)
776
+
(For more about using Web Services with Spring Boot, see "<<io#io.webservices>>".)
777
777
778
778
779
779
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
789
789
You can use `@WebServiceServerTest` to test applications that implement web services using the Spring Web Services project.
790
790
By default, it configures a `MockWebServiceClient` bean that can be used to call your web service endpoints.
791
-
(For more about using Web Services with Spring Boot, see "<<io#io.webservices>>", earlier in this chapter.)
791
+
(For more about using Web Services with Spring Boot, see "<<io#io.webservices>>".)
792
792
793
793
794
794
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