Untitled
unknown
plain_text
4 years ago
684 B
9
Indexable
Mockito.when driverRepository.findmyId(Mackito.anyInt().thenketurn(Optional.empty());
250
CobBookingExceptione Assertions.assertThrous (CabllookingException.class, () cahilookingservice.bookCab(new Rooking010(), 13);
Assertions.assertEquals("Service. DVALID_DRIVER_ID", e.getMessage());
Test public void getDriversyRatingDriverstotFoundTest() throws Exception (
41
Mockito.when driverkepository.getDriversyRating lockito, anybouble())). thenieturn(List.of());
45
CobBookingException e Assertions.usert Throws (CabBookingException.class,
() cabllookingservice.getDriversyllating(Hockito.anyouble()));
47
Assertions.assertEquals("Service. DRIVERS NOT FOUnt", e.getMessage());Editor is loading...