Skip to content

Commit e00f475

Browse files
committed
test(controller-test): print() 제거
1 parent 94719de commit e00f475

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed
Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
package com.somemore.support;
22

33

4-
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
5-
64
import com.fasterxml.jackson.databind.ObjectMapper;
7-
import org.junit.jupiter.api.BeforeEach;
85
import org.springframework.beans.factory.annotation.Autowired;
96
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
107
import org.springframework.boot.test.context.SpringBootTest;
118
import org.springframework.test.context.ActiveProfiles;
129
import org.springframework.test.web.servlet.MockMvc;
13-
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
14-
import org.springframework.web.context.WebApplicationContext;
15-
import org.springframework.web.filter.CharacterEncodingFilter;
1610

1711
@ActiveProfiles("test")
1812
@SpringBootTest
@@ -22,17 +16,7 @@ public abstract class ControllerTestSupport {
2216
@Autowired
2317
protected MockMvc mockMvc;
2418

25-
@Autowired
26-
private WebApplicationContext ctx;
27-
2819
@Autowired
2920
protected ObjectMapper objectMapper;
3021

31-
@BeforeEach
32-
public void setup() {
33-
this.mockMvc = MockMvcBuilders.webAppContextSetup(ctx)
34-
.addFilters(new CharacterEncodingFilter("UTF-8", true))
35-
.alwaysDo(print())
36-
.build();
37-
}
3822
}

0 commit comments

Comments
 (0)