Skip to content

Commit

Permalink
[MODAUD-174] - Fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
azizbekxm committed Nov 15, 2023
1 parent ba9d212 commit 97307d7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 97307d7

Please sign in to comment.