File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
backend/src/test/java/com/ai/lawyer/domain/post/controller Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 11package com .ai .lawyer .domain .post .controller ;
22
33import com .ai .lawyer .domain .post .dto .PostDto ;
4- import com .ai .lawyer .domain .post .entity .Post ;
54import com .ai .lawyer .domain .post .service .PostService ;
65import org .junit .jupiter .api .BeforeEach ;
76import org .junit .jupiter .api .DisplayName ;
87import org .junit .jupiter .api .Test ;
98import org .junit .jupiter .api .TestInstance ;
109import org .springframework .beans .factory .annotation .Autowired ;
1110import org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
12- import org .springframework .boot .test .context .SpringBootTest ;
1311import org .springframework .http .MediaType ;
14- import org .springframework .security .test .context .support .WithMockUser ;
1512import org .springframework .test .context .ActiveProfiles ;
1613import org .springframework .test .web .servlet .MockMvc ;
1714import org .springframework .test .web .servlet .ResultActions ;
1815import org .springframework .transaction .annotation .Transactional ;
1916
2017import java .time .LocalDateTime ;
2118
22- import static org .assertj .core .api .Assertions .assertThat ;
2319import static org .springframework .test .web .servlet .request .MockMvcRequestBuilders .*;
2420import static org .springframework .test .web .servlet .result .MockMvcResultHandlers .print ;
2521import static org .springframework .test .web .servlet .result .MockMvcResultMatchers .*;
2622
2723@ ActiveProfiles ("test" )
28- @ SpringBootTest
24+ // @SpringBootTest
2925@ AutoConfigureMockMvc
3026@ Transactional
3127@ TestInstance (TestInstance .Lifecycle .PER_CLASS )
You can’t perform that action at this time.
0 commit comments