diff --git a/end-to-end-tests/src/test/java/io/eventuate/examples/tram/ordersandcustomers/endtoendtests/CustomersAndOrdersEndToEndTest.java b/end-to-end-tests/src/test/java/io/eventuate/examples/tram/ordersandcustomers/endtoendtests/CustomersAndOrdersEndToEndTest.java
index a682daa..c341e86 100644
--- a/end-to-end-tests/src/test/java/io/eventuate/examples/tram/ordersandcustomers/endtoendtests/CustomersAndOrdersEndToEndTest.java
+++ b/end-to-end-tests/src/test/java/io/eventuate/examples/tram/ordersandcustomers/endtoendtests/CustomersAndOrdersEndToEndTest.java
@@ -10,6 +10,7 @@
import io.eventuate.examples.tram.ordersandcustomers.orders.webapi.GetOrderResponse;
import io.eventuate.examples.tram.ordersandcustomers.orderhistory.common.CustomerView;
import io.eventuate.util.test.async.Eventually;
+import io.eventuate.util.test.async.UrlTesting;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -22,8 +23,6 @@
import org.springframework.web.client.RestTemplate;
import java.io.IOException;
-import java.net.HttpURLConnection;
-import java.net.URL;
import java.util.Arrays;
import java.util.Map;
import java.util.concurrent.TimeUnit;
@@ -129,13 +128,7 @@ public void testSwaggerUiUrls() throws IOException {
}
private void testSwaggerUiUrl(int port) throws IOException {
- assertUrlStatusIsOk(String.format("http://%s:%s/swagger-ui/index.html", hostName, port));
- }
-
- private void assertUrlStatusIsOk(String url) throws IOException {
- HttpURLConnection connection = (HttpURLConnection)new URL(url).openConnection();
-
- Assert.assertEquals(200, connection.getResponseCode());
+ UrlTesting.assertUrlStatusIsOk("localhost", port, "/swagger-ui/index.html");
}
private CustomerView getCustomerView(Long customerId) {
diff --git a/gradle.properties b/gradle.properties
index b9c9bd7..30aee70 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -6,7 +6,7 @@ eventuateMavenRepoUrl=https://dl.bintray.com/eventuateio-oss/eventuate-maven-rel
springBootVersion=2.2.6.RELEASE
springCloudSleuthVersion=2.2.2.RELEASE
-eventuateUtilVersion=0.11.0.RELEASE
+eventuateUtilVersion=0.12.0.RELEASE
dockerComposePluginVersion=0.4.5
version=0.1.0-SNAPSHOT
diff --git a/pom.xml b/pom.xml
index 9721aee..d40c377 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
UTF-8
1.8
2021.3.RELEASE
- 0.10.0.RELEASE
+ 0.12.0.RELEASE
2.2.6.RELEASE
0.5.0.RELEASE
0.14.0.RELEASE