From e9be66c51a8c7af31749c1829419e648b4a04520 Mon Sep 17 00:00:00 2001 From: Costin Chiulan Date: Tue, 24 Sep 2024 11:29:33 +0300 Subject: [PATCH] Format ApiErrorBodyDeserializationSuite --- .../sdk/core/error/ApiErrorBodyDeserializationSuite.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/databricks-sdk-java/src/test/java/com/databricks/sdk/core/error/ApiErrorBodyDeserializationSuite.java b/databricks-sdk-java/src/test/java/com/databricks/sdk/core/error/ApiErrorBodyDeserializationSuite.java index d8722987..f6a7b896 100644 --- a/databricks-sdk-java/src/test/java/com/databricks/sdk/core/error/ApiErrorBodyDeserializationSuite.java +++ b/databricks-sdk-java/src/test/java/com/databricks/sdk/core/error/ApiErrorBodyDeserializationSuite.java @@ -69,11 +69,10 @@ void handleUnexpectedFieldsInErrorResponse() throws JsonProcessingException { void handleNullMetadataFieldInErrorResponse() throws JsonProcessingException { ObjectMapper mapper = new ObjectMapper(); String rawResponse = - "{\"error_code\":\"METASTORE_DOES_NOT_EXIST\",\"message\":\"No metastore assigned for the current workspace.\",\"details\":[{\"@type\":\"type.googleapis.com/google.rpc.RequestInfo\",\"request_id\":\"1888e822-f1b5-4996-85eb-0d2b5cc402e6\",\"serving_data\":\"\"}]}"; + "{\"error_code\":\"METASTORE_DOES_NOT_EXIST\",\"message\":\"No metastore assigned for the current workspace.\",\"details\":[{\"@type\":\"type.googleapis.com/google.rpc.RequestInfo\",\"request_id\":\"1888e822-f1b5-4996-85eb-0d2b5cc402e6\",\"serving_data\":\"\"}]}"; ApiErrorBody error = mapper.readValue(rawResponse, ApiErrorBody.class); assertEquals(error.getErrorCode(), "METASTORE_DOES_NOT_EXIST"); assertEquals(error.getMessage(), "No metastore assigned for the current workspace."); } - }