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