parent
d1f441a038
commit
757c6a9619
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2017 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -133,7 +133,8 @@ public class MongoClientFactoryTests {
|
|||
}
|
||||
|
||||
private List<ServerAddress> extractServerAddresses(MongoClient client) {
|
||||
Cluster cluster = (Cluster) ReflectionTestUtils.getField(client, "cluster");
|
||||
Cluster cluster = (Cluster) ReflectionTestUtils
|
||||
.getField(ReflectionTestUtils.getField(client, "delegate"), "cluster");
|
||||
ClusterSettings clusterSettings = (ClusterSettings) ReflectionTestUtils
|
||||
.getField(cluster, "settings");
|
||||
return clusterSettings.getHosts();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2017 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -159,7 +159,8 @@ public class MongoPropertiesTests {
|
|||
}
|
||||
|
||||
private List<ServerAddress> extractServerAddresses(MongoClient client) {
|
||||
Cluster cluster = (Cluster) ReflectionTestUtils.getField(client, "cluster");
|
||||
Cluster cluster = (Cluster) ReflectionTestUtils
|
||||
.getField(ReflectionTestUtils.getField(client, "delegate"), "cluster");
|
||||
ClusterSettings clusterSettings = (ClusterSettings) ReflectionTestUtils
|
||||
.getField(cluster, "settings");
|
||||
return clusterSettings.getHosts();
|
||||
|
|
|
@ -126,7 +126,7 @@
|
|||
<micrometer.version>1.0.5</micrometer.version>
|
||||
<mockito.version>2.19.0</mockito.version>
|
||||
<mongo-driver-reactivestreams.version>1.9.0-beta1</mongo-driver-reactivestreams.version>
|
||||
<mongodb.version>3.8.0-beta2</mongodb.version>
|
||||
<mongodb.version>3.8.0</mongodb.version>
|
||||
<mssql-jdbc.version>6.4.0.jre8</mssql-jdbc.version>
|
||||
<mysql.version>5.1.46</mysql.version>
|
||||
<narayana.version>5.8.2.Final</narayana.version>
|
||||
|
|
Loading…
Reference in New Issue