Skip to content

Commit de84554

Browse files
committed
fix(test): 테스트 클랜징 안되던 부분 추가
1 parent 73aeee4 commit de84554

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/test/java/com/somemore/facade/volunteerapply/SettleVolunteerApplyFacadeServiceTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
import org.junit.jupiter.api.DisplayName;
2525
import org.junit.jupiter.api.Test;
2626
import org.springframework.beans.factory.annotation.Autowired;
27+
import org.springframework.transaction.annotation.Transactional;
2728

29+
@Transactional
2830
class SettleVolunteerApplyFacadeServiceTest extends IntegrationTestSupport {
2931

3032
@Autowired

src/test/java/com/somemore/volunteer/service/UpdateVolunteerLockServiceTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import java.util.concurrent.CountDownLatch;
1111
import java.util.concurrent.ExecutorService;
1212
import java.util.concurrent.Executors;
13+
import org.junit.jupiter.api.AfterEach;
1314
import org.junit.jupiter.api.DisplayName;
1415
import org.junit.jupiter.api.Test;
1516
import org.springframework.beans.factory.annotation.Autowired;
@@ -22,6 +23,11 @@ class UpdateVolunteerLockServiceTest extends IntegrationTestSupport {
2223
@Autowired
2324
private VolunteerRepository volunteerRepository;
2425

26+
@AfterEach
27+
void tearDown() {
28+
volunteerRepository.deleteAllInBatch();
29+
}
30+
2531
@DisplayName("봉사자 아이디와 봉사 시간으로 봉사 스탯을 업데이트할 수 있다.")
2632
@Test
2733
void updateVolunteerStats() {

0 commit comments

Comments
 (0)