Remove remnants of support for Embedded Mongo
See gh-30863 and 7e089a6b
This commit is contained in:
@@ -549,7 +549,7 @@ If that is not what you want, you can disable transaction management for a test
|
||||
[[features.testing.spring-boot-applications.autoconfigured-spring-data-mongodb]]
|
||||
==== Auto-configured Data MongoDB Tests
|
||||
You can use `@DataMongoTest` to test MongoDB applications.
|
||||
By default, it configures an in-memory embedded MongoDB (if available), configures a `MongoTemplate`, scans for `@Document` classes, and configures Spring Data MongoDB repositories.
|
||||
By default, it configures a `MongoTemplate`, scans for `@Document` classes, and configures Spring Data MongoDB repositories.
|
||||
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataMongoTest` annotation is used.
|
||||
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
|
||||
(For more about using MongoDB with Spring Boot, see "<<data#data.nosql.mongodb>>", earlier in this chapter.)
|
||||
@@ -560,6 +560,8 @@ The following class shows the `@DataMongoTest` annotation in use:
|
||||
|
||||
include::code:MyDataMongoDbTests[]
|
||||
|
||||
|
||||
|
||||
[[features.testing.spring-boot-applications.autoconfigured-spring-data-neo4j]]
|
||||
==== Auto-configured Data Neo4j Tests
|
||||
You can use `@DataNeo4jTest` to test Neo4j applications.
|
||||
|
||||
Reference in New Issue
Block a user