@@ -161,8 +161,6 @@ void shouldFindAppointmentsBySpecialistIdBeforeDate() {
161161 .allMatch (a -> a .getDateTime ().isBefore (date ), "All appointments should be before the given date" );
162162 }
163163
164-
165-
166164 @ Test
167165 void shouldNotFindConflictedAppointmentBefore () {
168166 // given
@@ -171,7 +169,8 @@ void shouldNotFindConflictedAppointmentBefore() {
171169 Instant endDate = toInstant ("2024-03-05 11:45:00" );
172170
173171 // when
174- boolean conflict = appointmentRepository .hasConflictingAppointmentBySpecialistIdAndDateTime (specialistId , date , endDate );
172+ boolean conflict = appointmentRepository .hasConflictingAppointmentBySpecialistIdAndDateTime (specialistId , date ,
173+ endDate );
175174
176175 // then
177176 assertThat (conflict ).isFalse ();
@@ -185,13 +184,13 @@ void shouldNotFindConflictedAppointmentAfter() {
185184 Instant endDate = toInstant ("2024-03-05 12:01:00" );
186185
187186 // when
188- boolean conflict = appointmentRepository .hasConflictingAppointmentBySpecialistIdAndDateTime (specialistId , date , endDate );
187+ boolean conflict = appointmentRepository .hasConflictingAppointmentBySpecialistIdAndDateTime (specialistId , date ,
188+ endDate );
189189
190190 // then
191191 assertThat (conflict ).isFalse ();
192192 }
193193
194-
195194 @ Test
196195 void shouldFindConflictedAppointmentExact () {
197196 // given
@@ -200,7 +199,8 @@ void shouldFindConflictedAppointmentExact() {
200199 Instant endDate = toInstant ("2024-03-05 12:00:00" );
201200
202201 // when
203- boolean conflict = appointmentRepository .hasConflictingAppointmentBySpecialistIdAndDateTime (specialistId , date , endDate );
202+ boolean conflict = appointmentRepository .hasConflictingAppointmentBySpecialistIdAndDateTime (specialistId , date ,
203+ endDate );
204204
205205 // then
206206 assertThat (conflict ).isTrue ();
@@ -214,7 +214,8 @@ void shouldFindConflictedAppointmentBegin() {
214214 Instant endDate = toInstant ("2024-03-05 11:45:01" );
215215
216216 // when
217- boolean conflict = appointmentRepository .hasConflictingAppointmentBySpecialistIdAndDateTime (specialistId , date , endDate );
217+ boolean conflict = appointmentRepository .hasConflictingAppointmentBySpecialistIdAndDateTime (specialistId , date ,
218+ endDate );
218219
219220 // then
220221 assertThat (conflict ).isTrue ();
@@ -228,12 +229,11 @@ void shouldFindConflictedAppointmentEnd() {
228229 Instant endDate = toInstant ("2024-03-05 12:05:00" );
229230
230231 // when
231- boolean conflict = appointmentRepository .hasConflictingAppointmentBySpecialistIdAndDateTime (specialistId , date , endDate );
232+ boolean conflict = appointmentRepository .hasConflictingAppointmentBySpecialistIdAndDateTime (specialistId , date ,
233+ endDate );
232234
233235 // then
234236 assertThat (conflict ).isTrue ();
235237 }
236238
237-
238-
239239}
0 commit comments