mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Upgrade to MongoDB 4.2.2
Closes gh-25675
This commit is contained in:
parent
2e796f0406
commit
17ecf18a15
@ -25,7 +25,6 @@ import com.mongodb.connection.AsynchronousSocketChannelStreamFactoryFactory;
|
||||
import com.mongodb.connection.StreamFactory;
|
||||
import com.mongodb.connection.StreamFactoryFactory;
|
||||
import com.mongodb.connection.netty.NettyStreamFactoryFactory;
|
||||
import com.mongodb.internal.async.client.AsyncMongoClient;
|
||||
import com.mongodb.reactivestreams.client.MongoClient;
|
||||
import io.netty.channel.EventLoopGroup;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@ -113,8 +112,7 @@ class MongoReactiveAutoConfigurationTests {
|
||||
|
||||
private MongoClientSettings getSettings(ApplicationContext context) {
|
||||
MongoClient client = context.getBean(MongoClient.class);
|
||||
AsyncMongoClient wrappedClient = (AsyncMongoClient) ReflectionTestUtils.getField(client, "wrapped");
|
||||
return (MongoClientSettings) ReflectionTestUtils.getField(wrappedClient, "settings");
|
||||
return (MongoClientSettings) ReflectionTestUtils.getField(client, "settings");
|
||||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
|
@ -19,7 +19,6 @@ package org.springframework.boot.autoconfigure.mongo;
|
||||
import java.util.List;
|
||||
|
||||
import com.mongodb.MongoClientSettings;
|
||||
import com.mongodb.internal.async.client.AsyncMongoClient;
|
||||
import com.mongodb.reactivestreams.client.MongoClient;
|
||||
|
||||
import org.springframework.test.util.ReflectionTestUtils;
|
||||
@ -41,8 +40,7 @@ class ReactiveMongoClientFactoryTests extends MongoClientFactorySupportTests<Mon
|
||||
|
||||
@Override
|
||||
protected MongoClientSettings getClientSettings(MongoClient client) {
|
||||
AsyncMongoClient wrapped = (AsyncMongoClient) ReflectionTestUtils.getField(client, "wrapped");
|
||||
return (MongoClientSettings) ReflectionTestUtils.getField(wrapped, "settings");
|
||||
return (MongoClientSettings) ReflectionTestUtils.getField(client, "settings");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1206,7 +1206,7 @@ bom {
|
||||
]
|
||||
}
|
||||
}
|
||||
library("MongoDB", "4.2.0-beta1") {
|
||||
library("MongoDB", "4.2.2") {
|
||||
group("org.mongodb") {
|
||||
modules = [
|
||||
"bson",
|
||||
|
Loading…
Reference in New Issue
Block a user