From c1c81310a43b1bc7475c15580f1b9cd2348ffd72 Mon Sep 17 00:00:00 2001 From: VasylyshynDmytro Date: Fri, 13 Dec 2024 21:12:13 +0200 Subject: [PATCH] Fix test --- .../test/java/greencity/controller/PlaceControllerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/test/java/greencity/controller/PlaceControllerTest.java b/core/src/test/java/greencity/controller/PlaceControllerTest.java index f41689164..4497171cb 100644 --- a/core/src/test/java/greencity/controller/PlaceControllerTest.java +++ b/core/src/test/java/greencity/controller/PlaceControllerTest.java @@ -626,7 +626,7 @@ void updateStatusWithApprovedStatusDECLINED() throws Exception { String json = """ { "placeName": "testPlace", - "newStatus": "APPROVED", + "newStatus": "DECLINED", "userName": "testUser", "email": "user@example.com" } @@ -682,12 +682,12 @@ void updateStatusDoesNotSendNotificationButSavesDataWhenStatusIsDELETED() throws Place place = new Place(); place.setId(1L); place.setName("testPlace"); - place.setStatus(PlaceStatus.PROPOSED); + place.setStatus(PlaceStatus.DELETED); when(placeService.updatePlaceStatus(any(UpdatePlaceStatusWithUserEmailDto.class))).thenReturn(dto); String json = """ { "placeName": "testPlace", - "newStatus": "PROPOSED", + "newStatus": "DELETED", "userName": "testUser", "email": "user@example.com" }