Commit 6965e3db authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #26162 from izeye

* pr/26162:
  Fix broken assertions in tests

Closes gh-26162
parents 57d35aba e53453c6
......@@ -469,7 +469,7 @@ public abstract class AbstractReactiveWebServerFactoryTests {
try {
ContentResponse response = client.POST("http://localhost:" + this.webServer.getPort())
.content(new StringContentProvider("Hello World"), "text/plain").send();
assertThat(response.getStatus() == HttpStatus.OK.value());
assertThat(response.getStatus()).isEqualTo(HttpStatus.OK.value());
assertThat(response.getContentAsString()).isEqualTo("Hello World");
}
finally {
......
......@@ -1139,7 +1139,8 @@ public abstract class AbstractServletWebServerFactoryTests {
client.start();
try {
ContentResponse response = client.GET("http://localhost:" + this.webServer.getPort() + "/hello");
assertThat(response.getStatus() == HttpStatus.OK.value());
assertThat(response.getStatus()).isEqualTo(HttpStatus.OK.value());
assertThat(response.getContentAsString()).isEqualTo("Hello World");
}
finally {
client.stop();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment