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 97307d7 commit 3152592
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package org.folio.rest.impl;

import static io.restassured.RestAssured.get;
import static io.restassured.RestAssured.given;
import static org.folio.utils.EntityUtils.ORDER_ID;
import static org.folio.utils.EntityUtils.ORDER_LINE_ID;
import static org.folio.utils.EntityUtils.PIECE_ID;
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 @@ -202,15 +200,15 @@ void shouldReturnPieceEventsStatusChangeHistoryGetByPieceId() {
.body(containsString(id5));

given().header(CONTENT_TYPE).header(TENANT).header(PERMS)
.get(ACQ_AUDIT_PIECE_PATH + ORDER_ID + ACQ_AUDIT_PIECE_STATUS_CHANGE_HISTORY_PATH +"?limit=1")
.get(ACQ_AUDIT_PIECE_PATH + PIECE_ID + ACQ_AUDIT_PIECE_STATUS_CHANGE_HISTORY_PATH +"?limit=1")
.then().log().all().statusCode(200)
.body(containsString(ORDER_ID))
.body(containsString(PIECE_ID))
.body(containsString(id1));

given().header(CONTENT_TYPE).header(TENANT).header(PERMS)
.get(ACQ_AUDIT_PIECE_PATH + ORDER_ID + ACQ_AUDIT_PIECE_STATUS_CHANGE_HISTORY_PATH +"?sortBy=action_date")
.get(ACQ_AUDIT_PIECE_PATH + PIECE_ID + ACQ_AUDIT_PIECE_STATUS_CHANGE_HISTORY_PATH +"?sortBy=action_date")
.then().log().all().statusCode(200)
.body(containsString(ORDER_ID))
.body(containsString(PIECE_ID))
.body(containsString(id1))
.body(containsString(id3))
.body(containsString(id5));
Expand Down

0 comments on commit 3152592

Please sign in to comment.