From de25f12eee4bd05c79f3b32b49be75410db4eccc Mon Sep 17 00:00:00 2001 From: aribray <45905583+aribray@users.noreply.github.com> Date: Wed, 18 May 2022 17:23:38 -0700 Subject: [PATCH] fix: fix checkstyle Change-Id: I18be2a5c1d46ac9838cf4a15ab87dcf331ee26ee --- ...onfigureWebhookToSetFormParametersAsOptionalOrRequired.java | 3 ++- ...gureWebhookToSetFormParametersAsOptionalOrRequiredTest.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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); }