Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated eventuate-util version. Removed unused code from tests. #93

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<eventuatePlatformVersion>2021.3.RELEASE</eventuatePlatformVersion>
<eventuateUtilVersion>0.10.0.RELEASE</eventuateUtilVersion>
<eventuateUtilVersion>0.12.0.RELEASE</eventuateUtilVersion>
<springBootVersion>2.2.6.RELEASE</springBootVersion>
<eventuateTramViewSupportVersion>0.5.0.RELEASE</eventuateTramViewSupportVersion>
<eventuateMessagingKafkaVersion>0.14.0.RELEASE</eventuateMessagingKafkaVersion>
Expand Down