diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index 5f5290c98d..3d094cabf0 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -47,7 +47,7 @@ 1.2.0.BUILD-SNAPSHOT 5.10.0 - 1.8.2 + 1.8.4 3.9.3 2.1.4 1.9.2 @@ -60,20 +60,20 @@ 1.3.0 3.1.0 3.0 - 2.3.20 + 2.3.21 7.0.2 1.6 - 2.3.6 + 2.3.7 1.3.176 1.3 - 4.3.6.Final + 4.3.7.Final ${hibernate.version} 1.0.1.Final 5.1.2.Final 2.1.0 - 4.3.5 + 4.3.6 4.0.2 - 2.4.3.Final + 2.4.5.Final 2.3.2 2.4.2 2.3 @@ -88,7 +88,7 @@ 2.0.5 2.13 2.4 - 1.2.2 + 1.2.3 0.9.1 1.2 4.11 @@ -97,8 +97,8 @@ 2.0.2 1.1.2 1.9.5 - 2.12.3 - 5.1.32 + 2.12.4 + 5.1.34 1.1.5.RELEASE 1.1.3.RELEASE 3.1.0 @@ -125,7 +125,7 @@ ${javax-mail.version} 2.1.3.RELEASE 2.1.1.RELEASE - 1.2.5 + 1.2.7 1.3 8.0.14 1.7 diff --git a/spring-boot-samples/spring-boot-sample-data-mongodb/src/test/java/sample/data/mongo/SampleMongoApplicationTests.java b/spring-boot-samples/spring-boot-sample-data-mongodb/src/test/java/sample/data/mongo/SampleMongoApplicationTests.java index d349ae3d38..a548beeecc 100644 --- a/spring-boot-samples/spring-boot-sample-data-mongodb/src/test/java/sample/data/mongo/SampleMongoApplicationTests.java +++ b/spring-boot-samples/spring-boot-sample-data-mongodb/src/test/java/sample/data/mongo/SampleMongoApplicationTests.java @@ -16,6 +16,8 @@ package sample.data.mongo; +import java.util.regex.Pattern; + import org.junit.Rule; import org.junit.Test; import org.springframework.boot.test.OutputCapture; @@ -33,6 +35,9 @@ import static org.junit.Assert.assertTrue; */ public class SampleMongoApplicationTests { + private static final Pattern TIMEOUT_MESSAGE_PATTERN = Pattern + .compile("Timed out after [0-9]+ ms while waiting for a server.*"); + @Rule public OutputCapture outputCapture = new OutputCapture(); @@ -61,7 +66,7 @@ public class SampleMongoApplicationTests { if (root.getMessage().contains("Unable to connect to any server")) { return true; } - if (root.getMessage().contains("Timed out while waiting for a server")) { + if (TIMEOUT_MESSAGE_PATTERN.matcher(root.getMessage()).matches()) { return true; } }