diff --git a/src/test/java/com/labwork1/app/JpaCustomerTests.java b/src/test/java/com/labwork1/app/JpaCustomerTests.java index 71ac3b8..3bfa9f7 100644 --- a/src/test/java/com/labwork1/app/JpaCustomerTests.java +++ b/src/test/java/com/labwork1/app/JpaCustomerTests.java @@ -68,11 +68,12 @@ public class JpaCustomerTests { .findOrder(order2.getId()).getTickets().size(), 3); customerService.deleteCustomer(customer2.getId()); + Assertions.assertThrows(EntityNotFoundException.class, () -> customerService.findCustomer(customer2.getId())); Assertions.assertThrows(EntityNotFoundException.class, () -> orderService.findOrder(order2.getId())); Assertions.assertEquals(orderService.findAllOrders().size(), 0); } - /*@Test() + @Test() void testCustomer() { customerService.deleteAllCustomers(); final Customer customer = customerService.addCustomer("Иван", "Иванов"); @@ -132,5 +133,5 @@ public class JpaCustomerTests { final List tickets2 = ticketService.findAllTickets(); log.info(tickets2.toString() + "testTicketReadAllEmpty"); Assertions.assertEquals(tickets2.size(), 0); - }*/ + } }