mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Merge branch '3.2.x'
Closes gh-40479
This commit is contained in:
+6
@@ -241,6 +241,12 @@ class MongoAutoConfigurationTests {
|
||||
.doesNotHaveBean(PropertiesMongoConnectionDetails.class));
|
||||
}
|
||||
|
||||
@Test
|
||||
void uuidRepresentationDefaultsAreAligned() {
|
||||
this.contextRunner.run((context) -> assertThat(getSettings(context).getUuidRepresentation())
|
||||
.isEqualTo(new MongoProperties().getUuidRepresentation()));
|
||||
}
|
||||
|
||||
private MongoClientSettings getSettings(AssertableApplicationContext context) {
|
||||
assertThat(context).hasSingleBean(MongoClient.class);
|
||||
MongoClientImpl client = (MongoClientImpl) context.getBean(MongoClient.class);
|
||||
|
||||
+6
@@ -252,6 +252,12 @@ class MongoReactiveAutoConfigurationTests {
|
||||
.doesNotHaveBean(PropertiesMongoConnectionDetails.class));
|
||||
}
|
||||
|
||||
@Test
|
||||
void uuidRepresentationDefaultsAreAligned() {
|
||||
this.contextRunner.run((context) -> assertThat(getSettings(context).getUuidRepresentation())
|
||||
.isEqualTo(new MongoProperties().getUuidRepresentation()));
|
||||
}
|
||||
|
||||
private MongoClientSettings getSettings(ApplicationContext context) {
|
||||
MongoClientImpl client = (MongoClientImpl) context.getBean(MongoClient.class);
|
||||
return client.getSettings();
|
||||
|
||||
Reference in New Issue
Block a user