From d3ea4a1e03bdcb0f63be0669d5057235726b7891 Mon Sep 17 00:00:00 2001 From: Jamie Briggs Date: Tue, 11 Feb 2025 12:49:52 +0000 Subject: [PATCH] CCMSPUI-530 fixed NotificationRepositoryIntegrationTest Signed-off-by: Jamie Briggs --- .../data/repository/NotificationRepositoryIntegrationTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data-service/src/integrationTest/java/uk/gov/laa/ccms/data/repository/NotificationRepositoryIntegrationTest.java b/data-service/src/integrationTest/java/uk/gov/laa/ccms/data/repository/NotificationRepositoryIntegrationTest.java index 25c8a5b..63179f1 100644 --- a/data-service/src/integrationTest/java/uk/gov/laa/ccms/data/repository/NotificationRepositoryIntegrationTest.java +++ b/data-service/src/integrationTest/java/uk/gov/laa/ccms/data/repository/NotificationRepositoryIntegrationTest.java @@ -3,6 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import java.time.LocalDate; +import java.time.LocalDateTime; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @@ -98,7 +99,7 @@ public void shouldReturnNotificationWithNotes(){ NotificationNote note = result.getNotes().getFirst(); assertEquals(1, note.getNoteId()); assertEquals(1, note.getNotificationId()); - assertEquals(LocalDate.of(2025, 1, 1), note.getNoteDate()); + assertEquals(LocalDateTime.of(2025, 1, 1, 0,0,0,0), note.getNoteDate()); assertEquals("Here is the body of text for this note", note.getNoteText()); assertEquals("Jamie Briggs", note.getNoteBy()); }