Fix tests after URL cleanup.

This commit is contained in:
Olga Maciaszek-Sharma
2019-04-01 18:34:56 +02:00
parent a4cc1ac834
commit 853d442dc6
2 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ public class RouteTests {
@Test
public void defeaultHttpPort() {
Route route = Route.async().id("1").predicate(exchange -> true)
.uri("https://acme.com").build();
.uri("http://acme.com").build();
assertThat(route.getUri()).hasHost("acme.com").hasScheme("http").hasPort(80);
}
@@ -46,7 +46,7 @@ public class RouteTests {
@Test
public void fullUri() {
Route route = Route.async().id("1").predicate(exchange -> true)
.uri("https://acme.com:8080").build();
.uri("http://acme.com:8080").build();
assertThat(route.getUri()).hasHost("acme.com").hasScheme("http").hasPort(8080);
}

View File

@@ -85,7 +85,7 @@ class RouteDslTests {
@Test
fun dslWithFunctionParameters() {
val routerLocator = builder.routes {
route(id = "test1", order = 10, uri = "https://httpbin.org") {
route(id = "test1", order = 10, uri = "http://httpbin.org") {
host("**.abc.org")
}
route(id = "test2", order = 10, uri = "http://someurl") {