Skip to content

Commit 5d94130

Browse files
committed
[WFLY-19435]changes in test
1 parent 6041e51 commit 5d94130

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

microprofile-reactive-messaging-kafka/src/test/java/org/wildfly/quickstarts/microprofile/reactive/messaging/test/ReactiveMessagingKafkaIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ private boolean checkResponse(CloseableHttpResponse response, boolean fail) thro
121121
return false;
122122
}
123123

124-
Assert.assertNotEquals("Expected to find 'Hello' on line 0 of:\n" + lines, -1, lines.get(0).indexOf("Hello"));
125-
Assert.assertNotEquals("Expected to find 'Kafka' on line 1 of:\n" + lines, -1, lines.get(1).indexOf("Kafka"));
124+
Assert.assertNotEquals("Expected to find 'Hello' on line 0 of:\n" + lines, -1, lines.get(1).indexOf("Hello"));
125+
Assert.assertNotEquals("Expected to find 'Kafka' on line 1 of:\n" + lines, -1, lines.get(2).indexOf("Kafka"));
126126
for (int i = 2; i < lines.size(); i++) {
127127
Assert.assertNotEquals(
128128
"Expected to find 'Hello' or 'Kafka' on line " + i +
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package org.wildfly.quickstarts.microprofile.reactive.messaging.test;
22

33
public class TestUtils {
4-
static final String DEFAULT_SERVER_HOST = "http://localhost:8080/microprofile-reactive-messaging-kafka/rest";
4+
static final String DEFAULT_SERVER_HOST = "http://localhost:8080/microprofile-reactive-messaging-kafka";
5+
static final String API_PATH = "/rest";
56

67
static String getServerHost() {
78
String serverHost = System.getenv("SERVER_HOST");
@@ -11,6 +12,6 @@ static String getServerHost() {
1112
if (serverHost == null) {
1213
serverHost = DEFAULT_SERVER_HOST;
1314
}
14-
return serverHost;
15+
return serverHost + API_PATH;
1516
}
1617
}

0 commit comments

Comments
 (0)