Skip to content

Commit

Permalink
#56 - 리팩토링: import 정리와 줄 개행
Browse files Browse the repository at this point in the history
  • Loading branch information
djkeh committed Jun 25, 2022
1 parent 7ae3df8 commit fd57ee0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -25,14 +24,14 @@
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})
@WebMvcTest(ArticleCommentController.class)
class ArticleCommentControllerTest {

private final MockMvc mvc;

private final FormDataEncoder formDataEncoder;

@MockBean private ArticleCommentService articleCommentService;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fd57ee0

Please sign in to comment.