質問編集履歴

1

予約情報取得のテストを更新

2025/02/08 01:17

投稿

Fitz
Fitz

スコア1

test CHANGED
File without changes
test CHANGED
@@ -108,8 +108,8 @@
108
108
  void closeService() throws Exception {
109
109
  closeable.close();
110
110
  }
111
- @Test
111
+ @Test
112
- @DisplayName("予約情報取得および重複チェック")
112
+ @DisplayName("予約情報取得")
113
113
  public void testFindReservations() {
114
114
 
115
115
  //予約日の日付を初期化
@@ -127,10 +127,6 @@
127
127
 
128
128
  //比較用のreservationId
129
129
  Integer reservationId = 83;
130
-
131
-
132
- //userは、上記の要素が重複すればそもそも予約できないため不要
133
- //User user = new User();
134
130
 
135
131
  //Reservationに比較用の予約情報を設定
136
132
  reservation = new Reservation();
@@ -154,7 +150,7 @@
154
150
 
155
151
  // 呼び出しの検証
156
152
  verify(reservationRepository, times(1))
157
- .findByReservableRoom_ReservableRoomIdOrderByStartTimeAsc(reservableRoomId);
153
+ .findByReservableRoom_ReservableRoomIdOrderByStartTimeAsc(reservableRoomId);
158
154
  }
159
155
  ```
160
156