Убрали комментарий
This commit is contained in:
parent
ba29a321f0
commit
28263bf4f9
@ -68,11 +68,12 @@ public class JpaCustomerTests {
|
|||||||
.findOrder(order2.getId()).getTickets().size(), 3);
|
.findOrder(order2.getId()).getTickets().size(), 3);
|
||||||
|
|
||||||
customerService.deleteCustomer(customer2.getId());
|
customerService.deleteCustomer(customer2.getId());
|
||||||
|
Assertions.assertThrows(EntityNotFoundException.class, () -> customerService.findCustomer(customer2.getId()));
|
||||||
Assertions.assertThrows(EntityNotFoundException.class, () -> orderService.findOrder(order2.getId()));
|
Assertions.assertThrows(EntityNotFoundException.class, () -> orderService.findOrder(order2.getId()));
|
||||||
Assertions.assertEquals(orderService.findAllOrders().size(), 0);
|
Assertions.assertEquals(orderService.findAllOrders().size(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*@Test()
|
@Test()
|
||||||
void testCustomer() {
|
void testCustomer() {
|
||||||
customerService.deleteAllCustomers();
|
customerService.deleteAllCustomers();
|
||||||
final Customer customer = customerService.addCustomer("Иван", "Иванов");
|
final Customer customer = customerService.addCustomer("Иван", "Иванов");
|
||||||
@ -132,5 +133,5 @@ public class JpaCustomerTests {
|
|||||||
final List<Ticket> tickets2 = ticketService.findAllTickets();
|
final List<Ticket> tickets2 = ticketService.findAllTickets();
|
||||||
log.info(tickets2.toString() + "testTicketReadAllEmpty");
|
log.info(tickets2.toString() + "testTicketReadAllEmpty");
|
||||||
Assertions.assertEquals(tickets2.size(), 0);
|
Assertions.assertEquals(tickets2.size(), 0);
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user