From 28263bf4f941cb508d83557465e905abff74c70e Mon Sep 17 00:00:00 2001 From: dasha Date: Wed, 15 Mar 2023 23:57:08 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=D0=B8=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/com/labwork1/app/JpaCustomerTests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); - }*/ + } }