Skip to content

Commit ad6afc6

Browse files
committed
fix:[ci/cd]: 버그 수정
1 parent 262fd6a commit ad6afc6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

backend/src/test/java/com/ai/lawyer/domain/post/controller/PostControllerTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
11
package com.ai.lawyer.domain.post.controller;
22

33
import com.ai.lawyer.domain.post.dto.PostDto;
4-
import com.ai.lawyer.domain.post.entity.Post;
54
import com.ai.lawyer.domain.post.service.PostService;
65
import org.junit.jupiter.api.BeforeEach;
76
import org.junit.jupiter.api.DisplayName;
87
import org.junit.jupiter.api.Test;
98
import org.junit.jupiter.api.TestInstance;
109
import org.springframework.beans.factory.annotation.Autowired;
1110
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
12-
import org.springframework.boot.test.context.SpringBootTest;
1311
import org.springframework.http.MediaType;
14-
import org.springframework.security.test.context.support.WithMockUser;
1512
import org.springframework.test.context.ActiveProfiles;
1613
import org.springframework.test.web.servlet.MockMvc;
1714
import org.springframework.test.web.servlet.ResultActions;
1815
import org.springframework.transaction.annotation.Transactional;
1916

2017
import java.time.LocalDateTime;
2118

22-
import static org.assertj.core.api.Assertions.assertThat;
2319
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
2420
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
2521
import 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)

0 commit comments

Comments
 (0)