generated from pricelees/issue-pr-template
fix: 일부 오타 수정
This commit is contained in:
parent
81252294df
commit
aca036ae82
@ -45,16 +45,17 @@ class ReservationWithPaymentService(
|
||||
reservationId: Long,
|
||||
memberId: Long,
|
||||
): PaymentCancelRequest {
|
||||
log.info { "[ReservationWithPaymentService.deleteReservationAndPayment] 결제 취소 정보 저장 & 예약 삭제 시작: reservationId=$reservationId, memberId=$memberId" }
|
||||
log.info { "[ReservationWithPaymentService.deleteReservationAndPayment] 결제 취소 정보 저장 & 예약 삭제 시작: reservationId=$reservationId" }
|
||||
val paymentCancelRequest = paymentService.createCanceledPaymentByReservationId(reservationId)
|
||||
|
||||
reservationService.deleteReservation(reservationId, memberId)
|
||||
log.info { "[ReservationWithPaymentService.deleteReservationAndPayment] 결제 취소 정보 저장 & 예약 삭제 완료: reservationId=$reservationId" }
|
||||
return paymentCancelRequest
|
||||
}
|
||||
|
||||
@Transactional(readOnly = true)
|
||||
fun isNotPaidReservation(reservationId: Long): Boolean {
|
||||
log.info { "[ReservationWithPaymentService.isNotPaidReservation] 예약 결제 여부 확인: reservationId=$reservationId" }
|
||||
log.debug { "[ReservationWithPaymentService.isNotPaidReservation] 예약 결제 여부 확인: reservationId=$reservationId" }
|
||||
return !paymentService.isReservationPaid(reservationId)
|
||||
.also { log.info { "[ReservationWithPaymentService.isNotPaidReservation] 결제 여부 확인 완료: reservationId=$reservationId, 결제 여부=${!it}" } }
|
||||
}
|
||||
@ -63,7 +64,6 @@ class ReservationWithPaymentService(
|
||||
paymentKey: String,
|
||||
canceledAt: OffsetDateTime,
|
||||
) {
|
||||
log.info { "[ReservationWithPaymentService.updateCanceledTime] 취소 시간 업데이트: paymentKey=$paymentKey" }
|
||||
paymentService.updateCanceledTime(paymentKey, canceledAt)
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,8 +6,8 @@ import org.hamcrest.Matchers.equalTo
|
||||
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest
|
||||
import org.springframework.data.repository.findByIdOrNull
|
||||
import org.springframework.test.web.servlet.MockMvc
|
||||
import roomescape.auth.exception.AuthErrorCode
|
||||
import roomescape.auth.business.AuthService
|
||||
import roomescape.auth.exception.AuthErrorCode
|
||||
import roomescape.common.exception.CommonErrorCode
|
||||
import roomescape.common.exception.ErrorCode
|
||||
import roomescape.util.MemberFixture
|
||||
@ -133,6 +133,10 @@ class AuthControllerTest(
|
||||
jwtHandler.getMemberIdFromToken(any())
|
||||
} returns 1L
|
||||
|
||||
every {
|
||||
memberRepository.findByIdOrNull(1L)
|
||||
} returns MemberFixture.create(id = 1L)
|
||||
|
||||
Then("정상 응답한다.") {
|
||||
runPostTest(
|
||||
mockMvc = mockMvc,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user