Skip to content

Commit 50543e4

Browse files
committed
fix: DirtiesContext 추가해서 다시 테스트
1 parent 8d575aa commit 50543e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/com/example/log4u/domain/follow/FollowTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import org.junit.jupiter.api.Test;
77
import org.springframework.beans.factory.annotation.Autowired;
88
import org.springframework.boot.test.context.SpringBootTest;
9+
import org.springframework.test.annotation.DirtiesContext;
910

1011
import com.example.log4u.domain.follow.entitiy.Follow;
1112
import com.example.log4u.domain.follow.exception.FollowNotFoundException;
@@ -20,6 +21,7 @@
2021

2122
@DisplayName("팔로우 통합 테스트(시큐리티 제외)")
2223
@SpringBootTest
24+
@DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD)
2325
class FollowTest {
2426

2527
@Autowired

0 commit comments

Comments
 (0)