From 0a94a749a847142fcce8453574e0201ba86d68be Mon Sep 17 00:00:00 2001 From: BKadirkhodjaev Date: Wed, 4 Dec 2024 19:49:38 +0500 Subject: [PATCH] [MODORDERS-1209]. Add more logs --- src/test/java/org/folio/rest/impl/MockServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/folio/rest/impl/MockServer.java b/src/test/java/org/folio/rest/impl/MockServer.java index 4ac81a3fe..499761b6b 100644 --- a/src/test/java/org/folio/rest/impl/MockServer.java +++ b/src/test/java/org/folio/rest/impl/MockServer.java @@ -1942,6 +1942,7 @@ private void handleGetPieces(RoutingContext ctx) { serverResponse(ctx, 500, APPLICATION_JSON, Response.Status.INTERNAL_SERVER_ERROR.getReasonPhrase()); } else { PieceCollection pieces; + logger.info("handleGetPieces (all records), pieces present: {}", getMockEntries(PIECES_STORAGE, Piece.class).isPresent()); if (getMockEntries(PIECES_STORAGE, Piece.class).isPresent()) { logger.info("handleGetPieces (all records)"); try { @@ -2389,7 +2390,6 @@ private void handleTransactionGetEntry(RoutingContext ctx) { .withSourcePoLineId("a6edc906-2f9f-5fb2-a373-efac406f0ef2") .withStatus(Encumbrance.Status.UNRELEASED)) .withMetadata(new Metadata()); - List transactions = List.of(transaction1); TransactionCollection transactionCollection = new TransactionCollection().withTransactions(List.of(transaction1, transaction2)).withTotalRecords(2); body = JsonObject.mapFrom(transactionCollection).encodePrettily(); } else if (query.contains("encumbrance.sourcePoLineId == 50fb5514-cdf1-11e8-a8d5-f2801f1b9fd1")) {