From ca0ecb72320a7dab1a6a0024defd0468c8b34f6c Mon Sep 17 00:00:00 2001 From: github-actions <> Date: Fri, 6 Oct 2023 01:23:55 +0000 Subject: [PATCH] Google Java Format --- .../controller/MemberControllerTest.java | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/backend/src/test/java/com/twtw/backend/domain/member/controller/MemberControllerTest.java b/backend/src/test/java/com/twtw/backend/domain/member/controller/MemberControllerTest.java index 69d2f0ef..34bc56c5 100644 --- a/backend/src/test/java/com/twtw/backend/domain/member/controller/MemberControllerTest.java +++ b/backend/src/test/java/com/twtw/backend/domain/member/controller/MemberControllerTest.java @@ -1,7 +1,16 @@ package com.twtw.backend.domain.member.controller; +import static com.twtw.backend.support.docs.ApiDocsUtils.getDocumentRequest; +import static com.twtw.backend.support.docs.ApiDocsUtils.getDocumentResponse; + +import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.document; +import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.get; +import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; + import com.twtw.backend.domain.member.service.MemberService; 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; @@ -9,14 +18,6 @@ import org.springframework.http.MediaType; import org.springframework.test.web.servlet.ResultActions; -import static com.twtw.backend.support.docs.ApiDocsUtils.getDocumentRequest; -import static com.twtw.backend.support.docs.ApiDocsUtils.getDocumentResponse; -import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.document; -import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.get; -import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; - @DisplayName("MemberController의") @WebMvcTest(MemberController.class) public class MemberControllerTest extends RestDocsTest { @@ -24,21 +25,24 @@ public class MemberControllerTest extends RestDocsTest { @Test @DisplayName("닉네임이 중복되었는가") - void duplicate() throws Exception{ + void duplicate() throws Exception { final ResultActions perform = mockMvc.perform( - get("/member/duplicate/{name}","진주원") + get("/member/duplicate/{name}", "진주원") .contentType(MediaType.APPLICATION_JSON) .header( "Authorization", - "Bearer wefa3fsdczf32.gaoiuergf92.gb5hsa2jgh") - ); + "Bearer wefa3fsdczf32.gaoiuergf92.gb5hsa2jgh")); // then perform.andExpect(status().isOk()); // docs perform.andDo(print()) - .andDo(document("get duplicate nickname", getDocumentRequest(), getDocumentResponse())); + .andDo( + document( + "get duplicate nickname", + getDocumentRequest(), + getDocumentResponse())); } }