From 97307d7f583b7bb41d5f8dd4804c9236dfb569f4 Mon Sep 17 00:00:00 2001 From: azizbekxm Date: Wed, 15 Nov 2023 13:29:03 +0500 Subject: [PATCH] [MODAUD-174] - Fixed unit tests --- .../org/folio/rest/impl/AuditDataAcquisitionAPITest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mod-audit-server/src/test/java/org/folio/rest/impl/AuditDataAcquisitionAPITest.java b/mod-audit-server/src/test/java/org/folio/rest/impl/AuditDataAcquisitionAPITest.java index 5a35b6a..7a4a90b 100644 --- a/mod-audit-server/src/test/java/org/folio/rest/impl/AuditDataAcquisitionAPITest.java +++ b/mod-audit-server/src/test/java/org/folio/rest/impl/AuditDataAcquisitionAPITest.java @@ -8,6 +8,7 @@ import static org.folio.utils.EntityUtils.createPieceAuditEvent; import static org.hamcrest.Matchers.containsString; +import java.time.LocalDateTime; import java.util.Date; import java.util.UUID; @@ -173,6 +174,11 @@ void shouldReturnPieceEventsStatusChangeHistoryGetByPieceId() { var pieceAuditEvent3 = createPieceAuditEvent(id3, "STATUS 2"); var pieceAuditEvent4 = createPieceAuditEvent(id4, "STATUS 2"); var pieceAuditEvent5 = createPieceAuditEvent(id5, "STATUS 1"); + pieceAuditEvent1.setActionDate(java.sql.Date.valueOf("2023-04-20T06:09:30")); + pieceAuditEvent2.setActionDate(java.sql.Date.valueOf("2023-04-20T06:10:30")); + pieceAuditEvent3.setActionDate(java.sql.Date.valueOf("2023-04-20T06:11:30")); + pieceAuditEvent4.setActionDate(java.sql.Date.valueOf("2023-04-20T06:12:30")); + pieceAuditEvent5.setActionDate(java.sql.Date.valueOf("2023-04-20T06:13:30")); pieceEventsDao.save(pieceAuditEvent1, TENANT_ID); pieceEventsDao.save(pieceAuditEvent2, TENANT_ID);