Rename Embedded Mongo configuration prefix to spring.mongodb.embedded
Previously, the prefix was spring.embedded-mongodb. This was inconsistent with the prefixes for Artermis and HornetQ which are spring.artemis.embedded and spring.hornetq.embedded respectively. See gh-2002
This commit is contained in:
@@ -30,7 +30,7 @@ import de.flapdoodle.embed.mongo.distribution.Feature;
|
||||
* @author Andy Wilkinson
|
||||
* @since 1.3.0
|
||||
*/
|
||||
@ConfigurationProperties(prefix = "spring.embedded-mongodb")
|
||||
@ConfigurationProperties(prefix = "spring.mongodb.embedded")
|
||||
public class EmbeddedMongoProperties {
|
||||
|
||||
/**
|
||||
|
||||
@@ -73,7 +73,7 @@ public class EmbeddedMongoAutoConfigurationTests {
|
||||
this.context = new AnnotationConfigApplicationContext();
|
||||
int mongoPort = findAvailableTcpPort();
|
||||
addEnvironment(this.context, "spring.data.mongodb.port=" + mongoPort,
|
||||
"spring.embedded-mongodb.features=TEXT_SEARCH, SYNC_DELAY");
|
||||
"spring.mongodb.embedded.features=TEXT_SEARCH, SYNC_DELAY");
|
||||
this.context.register(EmbeddedMongoAutoConfiguration.class);
|
||||
this.context.refresh();
|
||||
assertThat(this.context.getBean(EmbeddedMongoProperties.class).getFeatures(),
|
||||
@@ -100,7 +100,7 @@ public class EmbeddedMongoAutoConfigurationTests {
|
||||
int mongoPort = findAvailableTcpPort();
|
||||
addEnvironment(this.context, "spring.data.mongodb.port=" + mongoPort);
|
||||
if (configuredVersion != null) {
|
||||
addEnvironment(this.context, "spring.embedded-mongodb.version="
|
||||
addEnvironment(this.context, "spring.mongodb.embedded.version="
|
||||
+ configuredVersion);
|
||||
}
|
||||
this.context.register(MongoAutoConfiguration.class,
|
||||
|
||||
Reference in New Issue
Block a user