From 37be8ac44dc938c02ca9daf532d0670bd13eca1c Mon Sep 17 00:00:00 2001 From: github-actions <> Date: Tue, 12 Dec 2023 08:53:14 +0000 Subject: [PATCH] Google Java Format --- .../domain/image/controller/ImageControllerTest.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/backend/src/test/java/com/twtw/backend/domain/image/controller/ImageControllerTest.java b/backend/src/test/java/com/twtw/backend/domain/image/controller/ImageControllerTest.java index d78084d7..ea8e0266 100644 --- a/backend/src/test/java/com/twtw/backend/domain/image/controller/ImageControllerTest.java +++ b/backend/src/test/java/com/twtw/backend/domain/image/controller/ImageControllerTest.java @@ -2,6 +2,7 @@ import static com.twtw.backend.support.docs.ApiDocsUtils.getDocumentRequest; import static com.twtw.backend.support.docs.ApiDocsUtils.getDocumentResponse; + import static org.mockito.ArgumentMatchers.any; import static org.mockito.BDDMockito.given; import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.document; @@ -13,6 +14,7 @@ import com.twtw.backend.domain.image.dto.ImageResponse; import com.twtw.backend.domain.image.service.ImageService; import com.twtw.backend.support.docs.RestDocsTest; + import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; @@ -30,7 +32,8 @@ class ImageControllerTest extends RestDocsTest { @DisplayName("이미지 업로드 API가 수행되는가") void uploadImage() throws Exception { // given - final ImageResponse expected = new ImageResponse("https://storage.googleapis.com/bucket-name/some-file-id"); + final ImageResponse expected = + new ImageResponse("https://storage.googleapis.com/bucket-name/some-file-id"); given(imageService.uploadImage(any())).willReturn(expected); // when @@ -44,8 +47,7 @@ void uploadImage() throws Exception { "Bearer wefa3fsdczf32.gaoiuergf92.gb5hsa2jgh")); // then - perform.andExpect(status().isOk()) - .andExpect(jsonPath("$.imageUrl").isString()); + perform.andExpect(status().isOk()).andExpect(jsonPath("$.imageUrl").isString()); // docs perform.andDo(print())