Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Fix: Test Code 예약 결제 로직 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdtn0219 committed Nov 27, 2023
1 parent 4b257ea commit a082716
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,6 @@ void getMyReservations_success() {
then(reservationService).should().getMyReservations(any());
}

@Test
@DisplayName("예약 결제")
void payReservation_success() {
//given
given(reservationService.updateReservationStatusToPay(any()))
.willReturn(1L);

//when
var actual = reservationController.payReservation(1L);

//then
var expected = new ResponseDto<>(OK.value(), 1L);
assertEquals(actual, expected);
then(reservationService).should().updateReservationStatusToPay(any());
}

@Test
@DisplayName("예약 삭제")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,6 @@ void createReservation_success() {

}

@Test
void updateReservationStatusToPay_success() {
//given
given(reservationRepository.findById(anyLong())).willReturn(Optional.ofNullable(dummyReservation()));

//when
var actual = reservationService.updateReservationStatusToPay(1L);

//then
var expected = 1L;
assertEquals(actual, expected);

}

@Test
void deleteReservation_success() {
//given
Expand Down

0 comments on commit a082716

Please sign in to comment.