From fd57ee0e1773ce096a36f3d47f10e2e287155ea9 Mon Sep 17 00:00:00 2001 From: Uno Kim Date: Sat, 25 Jun 2022 13:12:45 +0900 Subject: [PATCH] =?UTF-8?q?#56=20-=20=EB=A6=AC=ED=8C=A9=ED=86=A0=EB=A7=81:?= =?UTF-8?q?=20import=20=EC=A0=95=EB=A6=AC=EC=99=80=20=EC=A4=84=20=EA=B0=9C?= =?UTF-8?q?=ED=96=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projectboard/controller/ArticleCommentControllerTest.java | 3 +-- .../projectboard/controller/ArticleControllerTest.java | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/fastcampus/projectboard/controller/ArticleCommentControllerTest.java b/src/test/java/com/fastcampus/projectboard/controller/ArticleCommentControllerTest.java index 00a0d81..923f89e 100644 --- a/src/test/java/com/fastcampus/projectboard/controller/ArticleCommentControllerTest.java +++ b/src/test/java/com/fastcampus/projectboard/controller/ArticleCommentControllerTest.java @@ -1,6 +1,5 @@ package com.fastcampus.projectboard.controller; -import com.fastcampus.projectboard.config.SecurityConfig; import com.fastcampus.projectboard.config.TestSecurityConfig; import com.fastcampus.projectboard.dto.ArticleCommentDto; import com.fastcampus.projectboard.dto.request.ArticleCommentRequest; @@ -25,7 +24,6 @@ import static org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.csrf; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.redirectedUrl; @DisplayName("View 컨트롤러 - 댓글") @Import({TestSecurityConfig.class, FormDataEncoder.class}) @@ -33,6 +31,7 @@ class ArticleCommentControllerTest { private final MockMvc mvc; + private final FormDataEncoder formDataEncoder; @MockBean private ArticleCommentService articleCommentService; diff --git a/src/test/java/com/fastcampus/projectboard/controller/ArticleControllerTest.java b/src/test/java/com/fastcampus/projectboard/controller/ArticleControllerTest.java index c4628d2..a4352ec 100644 --- a/src/test/java/com/fastcampus/projectboard/controller/ArticleControllerTest.java +++ b/src/test/java/com/fastcampus/projectboard/controller/ArticleControllerTest.java @@ -1,6 +1,5 @@ package com.fastcampus.projectboard.controller; -import com.fastcampus.projectboard.config.SecurityConfig; import com.fastcampus.projectboard.config.TestSecurityConfig; import com.fastcampus.projectboard.domain.constant.FormStatus; import com.fastcampus.projectboard.domain.constant.SearchType; @@ -46,11 +45,13 @@ class ArticleControllerTest { private final MockMvc mvc; + private final FormDataEncoder formDataEncoder; @MockBean private ArticleService articleService; @MockBean private PaginationService paginationService; + public ArticleControllerTest( @Autowired MockMvc mvc, @Autowired FormDataEncoder formDataEncoder