Fix WebClientTest calls

Update calls to WebClientTest following upstream changes.
This commit is contained in:
Phillip Webb
2017-04-14 16:26:01 -07:00
parent bcd79dd992
commit 700f0ea93c
5 changed files with 8 additions and 8 deletions

View File

@@ -67,13 +67,13 @@ public abstract class AbstractSpringBootTestEmbeddedReactiveWebEnvironmentTests
public void runAndTestHttpEndpoint() {
assertThat(this.port).isNotEqualTo(8080).isNotEqualTo(0);
WebTestClient.bindToServer().baseUrl("http://localhost:" + this.port).build()
.get().uri("/").exchange().expectBody(String.class).value()
.get().uri("/").exchange().expectBody(String.class)
.isEqualTo("Hello World");
}
@Test
public void injectWebTestClient() {
this.webClient.get().uri("/").exchange().expectBody(String.class).value()
this.webClient.get().uri("/").exchange().expectBody(String.class)
.isEqualTo("Hello World");
}