Skip to content

Commit

Permalink
refactor(template): TemplateControllerTest를 MockMvcTest로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jminkkk committed Oct 11, 2024
1 parent 7468bda commit fbc7e55
Show file tree
Hide file tree
Showing 2 changed files with 341 additions and 1,050 deletions.
4 changes: 4 additions & 0 deletions backend/src/test/java/codezap/global/MockMvcTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import codezap.global.cors.CorsProperties;
import codezap.member.fixture.MemberFixture;
import codezap.member.service.MemberService;
import codezap.template.service.facade.TemplateApplicationService;

@WebMvcTest(SpringExtension.class)
@EnableConfigurationProperties(CorsProperties.class)
Expand All @@ -42,6 +43,9 @@ public abstract class MockMvcTest {
@MockBean
protected MemberService memberService;

@MockBean
protected TemplateApplicationService templateApplicationService;

@BeforeEach
void setUp(WebApplicationContext webApplicationContext) {
mvc = MockMvcBuilders.webAppContextSetup(webApplicationContext)
Expand Down
Loading

0 comments on commit fbc7e55

Please sign in to comment.