Skip to content

Commit

Permalink
[MODORDERS-1209]. Add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
BKadirkhodjaev committed Dec 4, 2024
1 parent 7097155 commit 0a94a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/org/folio/rest/impl/MockServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -2389,7 +2390,6 @@ private void handleTransactionGetEntry(RoutingContext ctx) {
.withSourcePoLineId("a6edc906-2f9f-5fb2-a373-efac406f0ef2")
.withStatus(Encumbrance.Status.UNRELEASED))
.withMetadata(new Metadata());
List<Transaction> 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")) {
Expand Down

0 comments on commit 0a94a74

Please sign in to comment.