Skip to content

Commit

Permalink
Google Java Format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 12, 2023
1 parent 5d49934 commit 37be8ac
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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
Expand All @@ -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())
Expand Down

0 comments on commit 37be8ac

Please sign in to comment.