|
7 | 7 | import com.somemore.domains.volunteerapply.domain.VolunteerApply; |
8 | 8 | import com.somemore.domains.volunteerapply.dto.request.VolunteerApplySettleRequestDto; |
9 | 9 | import com.somemore.domains.volunteerapply.repository.VolunteerApplyRepository; |
10 | | -import com.somemore.domains.volunteerrecord.domain.VolunteerRecord; |
11 | | -import com.somemore.domains.volunteerrecord.repository.VolunteerRecordJpaRepository; |
12 | 10 | import com.somemore.global.exception.BadRequestException; |
13 | 11 | import com.somemore.support.IntegrationTestSupport; |
14 | 12 | import org.junit.jupiter.api.DisplayName; |
@@ -42,9 +40,6 @@ class SettleVolunteerApplyFacadeServiceTest extends IntegrationTestSupport { |
42 | 40 | @Autowired |
43 | 41 | private VolunteerRepository volunteerRepository; |
44 | 42 |
|
45 | | - @Autowired |
46 | | - private VolunteerRecordJpaRepository volunteerRecordJpaRepository; |
47 | | - |
48 | 43 | @DisplayName("봉사 활동 지원을 정산할 수 있다.") |
49 | 44 | @Test |
50 | 45 | void settleVolunteerApplies() { |
@@ -91,18 +86,6 @@ void settleVolunteerApplies() { |
91 | 86 | assertThat(findVolunteer1.getTotalVolunteerCount()).isEqualTo(1); |
92 | 87 | assertThat(findVolunteer2.getTotalVolunteerCount()).isEqualTo(1); |
93 | 88 | 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); |
106 | 89 | } |
107 | 90 |
|
108 | 91 | @DisplayName("정산시, 지원 리스트에 존재하지 않는 지원이 있는 경우 에러가 발생한다.") |
|
0 commit comments