Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
17ecf18a
Commit
17ecf18a
authored
Mar 16, 2021
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade to MongoDB 4.2.2
Closes gh-25675
parent
2e796f04
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
MongoReactiveAutoConfigurationTests.java
...oconfigure/mongo/MongoReactiveAutoConfigurationTests.java
+1
-3
ReactiveMongoClientFactoryTests.java
.../autoconfigure/mongo/ReactiveMongoClientFactoryTests.java
+1
-3
build.gradle
spring-boot-project/spring-boot-dependencies/build.gradle
+1
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mongo/MongoReactiveAutoConfigurationTests.java
View file @
17ecf18a
...
...
@@ -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
)
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mongo/ReactiveMongoClientFactoryTests.java
View file @
17ecf18a
...
...
@@ -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"
);
}
}
spring-boot-project/spring-boot-dependencies/build.gradle
View file @
17ecf18a
...
...
@@ -1206,7 +1206,7 @@ bom {
]
}
}
library
(
"MongoDB"
,
"4.2.
0-beta1
"
)
{
library
(
"MongoDB"
,
"4.2.
2
"
)
{
group
(
"org.mongodb"
)
{
modules
=
[
"bson"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment