Skip to content

Commit f4f5e02

Browse files
committed
DATAMONGO-1620 - Polishing.
Fix test method name. Add JavaDoc. Original pull request: #449.
1 parent 4b8d352 commit f4f5e02

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoClientOptionsFactoryBean.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ public void setSslSocketFactory(SSLSocketFactory sslSocketFactory) {
254254

255255
/**
256256
* Set the {@literal server selection timeout} in msec for a 3.x MongoDB Java driver. If not set the default value of
257-
* 30 sec will be used.
257+
* 30 sec will be used. A value of 0 means that it will timeout immediately if no server is available. A negative
258+
* value means to wait indefinitely.
258259
*
259260
* @param serverSelectionTimeout in msec.
260261
*/

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoClientParserIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
/**
4040
* Integration tests for {@link MongoClientParser}.
41-
*
41+
*
4242
* @author Christoph Strobl
4343
* @author Mark Paluch
4444
*/
@@ -118,7 +118,7 @@ public void createsMongoClientWithCredentialsCorrectly() {
118118
}
119119

120120
@Test // DATAMONGO-1620
121-
public void createsMongoClinetWithServerSelectionTimeoutCorrectly() {
121+
public void createsMongoClientWithServerSelectionTimeoutCorrectly() {
122122

123123
assumeThat(MongoClientVersion.isMongo3Driver(), is(true));
124124

0 commit comments

Comments
 (0)