From 1bc2b756dce3a11916e03e3c9befc71393a6bf63 Mon Sep 17 00:00:00 2001 From: daolove0323 Date: Sun, 10 Nov 2024 05:08:04 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EB=B3=B5?= =?UTF-8?q?=EA=B5=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wouldyouin/event/EventServiceUnitTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/java/org/ktc2/cokaen/wouldyouin/event/EventServiceUnitTest.java b/src/test/java/org/ktc2/cokaen/wouldyouin/event/EventServiceUnitTest.java index 161ed17b..16f8ee17 100644 --- a/src/test/java/org/ktc2/cokaen/wouldyouin/event/EventServiceUnitTest.java +++ b/src/test/java/org/ktc2/cokaen/wouldyouin/event/EventServiceUnitTest.java @@ -159,6 +159,18 @@ void update() { // then then(eventRepository).should(times(1)).findById(eventId); + + assertAll( + () -> assertEquals(validEvent.getTitle(), validEventEditRequest.getTitle()), + () -> assertEquals(validEvent.getContent(), validEventEditRequest.getContent()), + () -> assertEquals(validEvent.getArea(), validEventEditRequest.getArea()), + () -> assertEquals(validEvent.getLocation(), validEventEditRequest.getLocation()), + () -> assertEquals(validEvent.getStartTime(), validEventEditRequest.getStartTime()), + () -> assertEquals(validEvent.getEndTime(), validEventEditRequest.getEndTime()), + () -> assertEquals(validEvent.getPrice(), validEventEditRequest.getPrice()), + () -> assertEquals(validEvent.getTotalSeat(), validEventEditRequest.getTotalSeat()), + () -> assertEquals(validEvent.getCategory(), validEventEditRequest.getCategory()) + ); } @Test