Fix GCP test

Resolves #521
Resolves #522
This commit is contained in:
谭繁华
2020-05-15 17:33:52 +08:00
committed by Oleg Zhurakousky
parent ce28ce2cb6
commit 1f8b5a4a5a
3 changed files with 15 additions and 0 deletions

View File

@@ -22,6 +22,12 @@ public class WebTestClientTests {
@Autowired
private WebTestClient client;
@Test
public void words() {
client.get().uri("/words").exchange()
.expectStatus().isOk().expectBody(String.class).isEqualTo("[\"foo\",\"bar\"]");
}
@Test
public void uppercase() {
client.post().uri("/uppercase").body(Mono.just("foo"), String.class).exchange()
@@ -34,6 +40,12 @@ public class WebTestClientTests {
.expectStatus().isOk().expectBody(String.class).isEqualTo("[\"foobar\"]");
}
@Test
public void lowercaseMulti() {
client.post().uri("/lowercase").contentType(MediaType.APPLICATION_JSON).body(Mono.just("[\"FOO\"]"), String.class).exchange()
.expectStatus().isOk().expectBody(String.class).isEqualTo("[\"foo\"]");
}
@Test
public void testStream() {