Skip to content

Commit

Permalink
#332 [test] 인수 테스트에 transactional 추가
Browse files Browse the repository at this point in the history
테스트 이후 값이 초기화가 되지 않아서 다른 테스트가 실패했습니다.
따라서 테스트 이후 값을 초기화하기 위해서
인수 테스트에 transactional을 추가했습니다.
  • Loading branch information
KWY0218 committed Sep 1, 2024
1 parent 3228a86 commit 7e2bc46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.springframework.transaction.annotation.Transactional;

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;


@SpringBootTest
@AutoConfigureMockMvc
@Transactional
public class DuplicatedInterceptorTest {
@Autowired
private MockMvc mockMvc;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
import org.springframework.test.web.servlet.setup.MockMvcBuilders;

import java.nio.charset.Charset;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@ExtendWith(MockitoExtension.class)
public class MeetingRetrieveControllerTest {

Expand Down

0 comments on commit 7e2bc46

Please sign in to comment.