Skip to content

Commit 6f8cb1c

Browse files
authored
bug: 리뷰 응답 DTO 수정 (#196)
* fix(review): 응답 DTO 수정 * fix(test): 테스트 클랜징 안되던 부분 추가
1 parent baa0659 commit 6f8cb1c

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

src/main/java/com/somemore/review/dto/response/ReviewResponseDto.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public record ReviewResponseDto(
2525
@Schema(description = "작성 일자", example = "2024-12-01T09:00:00", type = "string")
2626
LocalDateTime createdAt,
2727
@Schema(description = "수정 일자", example = "2024-12-01T09:00:00", type = "string")
28-
LocalDateTime updateAt
28+
LocalDateTime updatedAt
2929
) {
3030

3131
public static ReviewResponseDto from(Review review) {
@@ -35,6 +35,8 @@ public static ReviewResponseDto from(Review review) {
3535
.title(review.getTitle())
3636
.content(review.getContent())
3737
.imgUrl(review.getImgUrl())
38+
.createdAt(review.getCreatedAt())
39+
.updatedAt(review.getUpdatedAt())
3840
.build();
3941
}
4042

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)