GH-570 Remove hard dependency on Gson for GCP

Resolves #570

polish test
This commit is contained in:
Oleg Zhurakousky
2021-04-06 12:20:39 +02:00
parent 731aa3fe0c
commit 8cfb4dc1c0
5 changed files with 74 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ public class FunctionSampleGcpIntegrationTest {
@Test
public void testSample() throws IOException, InterruptedException {
try (LocalServerTestSupport.ServerProcess process = LocalServerTestSupport.startServer(CloudFunctionMain.class)) {
String result = rest.postForObject("http://localhost:8080/", "Hello", String.class);
String result = rest.postForObject("http://localhost:8080/", "\"Hello\"", String.class);
assertThat(result).isEqualTo("\"HELLO\"");
}
}