diff --git a/samples/snippets/src/main/java/dialogflow/cx/ConfigureWebhookToSetFormParametersAsOptionalOrRequired.java b/samples/snippets/src/main/java/dialogflow/cx/ConfigureWebhookToSetFormParametersAsOptionalOrRequired.java index e792c8ad8..3bbcdb4cd 100644 --- a/samples/snippets/src/main/java/dialogflow/cx/ConfigureWebhookToSetFormParametersAsOptionalOrRequired.java +++ b/samples/snippets/src/main/java/dialogflow/cx/ConfigureWebhookToSetFormParametersAsOptionalOrRequired.java @@ -49,7 +49,8 @@ public void service(HttpRequest request, HttpResponse response) throws Exception responseObject = parser .parse( - "{\"page_info\":{\"form_info\":{\"parameter_info\":[{\"display_name\":\"order-number\",\"required\":\"true\",\"state\":\"VALID\"}]}}}") + "{\"page_info\":{\"form_info\":{\"parameter_info\": + [{\"display_name\":\"order-number\",\"required\":\"true\",\"state\":\"VALID\"}]}}}") .getAsJsonObject(); BufferedWriter writer = response.getWriter(); diff --git a/samples/snippets/src/test/java/dialogflow/cx/ConfigureWebhookToSetFormParametersAsOptionalOrRequiredTest.java b/samples/snippets/src/test/java/dialogflow/cx/ConfigureWebhookToSetFormParametersAsOptionalOrRequiredTest.java index 74e28a00f..232ef94f2 100644 --- a/samples/snippets/src/test/java/dialogflow/cx/ConfigureWebhookToSetFormParametersAsOptionalOrRequiredTest.java +++ b/samples/snippets/src/test/java/dialogflow/cx/ConfigureWebhookToSetFormParametersAsOptionalOrRequiredTest.java @@ -65,7 +65,8 @@ public void helloHttp_bodyParamsPost() throws IOException, Exception { new ConfigureWebhookToSetFormParametersAsOptionalOrRequired().service(request, response); writerOut.flush(); - String expectedResponse = "{\"page_info\":{\"form_info\":{\"parameter_info\":[{\"display_name\":\"order-number\",\"required\":\"true\",\"state\":\"VALID\"}]}}}"; + String expectedResponse = "{\"page_info\":{\"form_info\":{\"parameter_info\": + [{\"display_name\":\"order-number\",\"required\":\"true\",\"state\":\"VALID\"}]}}}"; assertThat(responseOut.toString()).isEqualTo(expectedResponse); }