Skip to content

Commit 2c6d162

Browse files
committed
fix: 봉사 기록 이벤트 발행 테스트 분리
- 이벤트 발행 테스트의 분리
1 parent e022479 commit 2c6d162

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/test/java/com/somemore/domains/volunteerapply/service/SettleVolunteerApplyFacadeServiceTest.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
import com.somemore.domains.volunteerapply.domain.VolunteerApply;
88
import com.somemore.domains.volunteerapply.dto.request.VolunteerApplySettleRequestDto;
99
import com.somemore.domains.volunteerapply.repository.VolunteerApplyRepository;
10-
import com.somemore.domains.volunteerrecord.domain.VolunteerRecord;
11-
import com.somemore.domains.volunteerrecord.repository.VolunteerRecordJpaRepository;
1210
import com.somemore.global.exception.BadRequestException;
1311
import com.somemore.support.IntegrationTestSupport;
1412
import org.junit.jupiter.api.DisplayName;
@@ -42,9 +40,6 @@ class SettleVolunteerApplyFacadeServiceTest extends IntegrationTestSupport {
4240
@Autowired
4341
private VolunteerRepository volunteerRepository;
4442

45-
@Autowired
46-
private VolunteerRecordJpaRepository volunteerRecordJpaRepository;
47-
4843
@DisplayName("봉사 활동 지원을 정산할 수 있다.")
4944
@Test
5045
void settleVolunteerApplies() {
@@ -91,18 +86,6 @@ void settleVolunteerApplies() {
9186
assertThat(findVolunteer1.getTotalVolunteerCount()).isEqualTo(1);
9287
assertThat(findVolunteer2.getTotalVolunteerCount()).isEqualTo(1);
9388
assertThat(findVolunteer3.getTotalVolunteerCount()).isEqualTo(1);
94-
95-
// 봉사 기록 생성 확인
96-
List<VolunteerRecord> records = volunteerRecordJpaRepository.findAll();
97-
assertThat(records).hasSize(3);
98-
99-
assertThat(records)
100-
.extracting(VolunteerRecord::getVolunteerId)
101-
.containsExactlyInAnyOrder(volunteer1.getId(), volunteer2.getId(), volunteer3.getId());
102-
103-
assertThat(records)
104-
.extracting(VolunteerRecord::getVolunteerHours)
105-
.containsOnly(hour);
10689
}
10790

10891
@DisplayName("정산시, 지원 리스트에 존재하지 않는 지원이 있는 경우 에러가 발생한다.")

0 commit comments

Comments
 (0)