Apply formatting update to appTest source set

This commit is contained in:
Andy Wilkinson
2023-03-20 15:07:25 +00:00
parent 5170a2e722
commit 7ba4bb9a99
93 changed files with 1419 additions and 642 deletions

View File

@@ -13,16 +13,28 @@ class CloudFunctionWebApplicationAotTests {
@Test
void uppercaseShouldBeInvokable(WebTestClient webTestClient) {
webTestClient.post().uri("/uppercase").header("Content-Type", MediaType.TEXT_PLAIN_VALUE).bodyValue("hello")
.exchange().expectStatus().isOk().expectBody()
.consumeWith((result) -> assertThat(new String(result.getResponseBodyContent())).isEqualTo("HELLO"));
webTestClient.post()
.uri("/uppercase")
.header("Content-Type", MediaType.TEXT_PLAIN_VALUE)
.bodyValue("hello")
.exchange()
.expectStatus()
.isOk()
.expectBody()
.consumeWith((result) -> assertThat(new String(result.getResponseBodyContent())).isEqualTo("HELLO"));
}
@Test
void lowercaseShouldBeInvokable(WebTestClient webTestClient) {
webTestClient.post().uri("/lowercase").header("Content-Type", MediaType.TEXT_PLAIN_VALUE).bodyValue("HELLO")
.exchange().expectStatus().isOk().expectBody()
.consumeWith((result) -> assertThat(new String(result.getResponseBodyContent())).isEqualTo("hello"));
webTestClient.post()
.uri("/lowercase")
.header("Content-Type", MediaType.TEXT_PLAIN_VALUE)
.bodyValue("HELLO")
.exchange()
.expectStatus()
.isOk()
.expectBody()
.consumeWith((result) -> assertThat(new String(result.getResponseBodyContent())).isEqualTo("hello"));
}
}