Skip to content

Commit

Permalink
[WFLY-19435]changes in test
Browse files Browse the repository at this point in the history
  • Loading branch information
sudeshnas93 committed Jun 25, 2024
1 parent 6041e51 commit 5d94130
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ private boolean checkResponse(CloseableHttpResponse response, boolean fail) thro
return false;
}

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

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

static String getServerHost() {
String serverHost = System.getenv("SERVER_HOST");
Expand All @@ -11,6 +12,6 @@ static String getServerHost() {
if (serverHost == null) {
serverHost = DEFAULT_SERVER_HOST;
}
return serverHost;
return serverHost + API_PATH;
}
}

0 comments on commit 5d94130

Please sign in to comment.