From 19d7e9f33b6ed64849b65c1a3c9e35cefccfc1cb Mon Sep 17 00:00:00 2001 From: azizbekxm Date: Wed, 15 Nov 2023 16:26:23 +0500 Subject: [PATCH] [MODAUD-174] - Fixed unit tests --- .../folio/rest/impl/AuditDataAcquisitionImpl.java | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/mod-audit-server/src/main/java/org/folio/rest/impl/AuditDataAcquisitionImpl.java b/mod-audit-server/src/main/java/org/folio/rest/impl/AuditDataAcquisitionImpl.java index 501b7c82..6a962554 100644 --- a/mod-audit-server/src/main/java/org/folio/rest/impl/AuditDataAcquisitionImpl.java +++ b/mod-audit-server/src/main/java/org/folio/rest/impl/AuditDataAcquisitionImpl.java @@ -29,18 +29,12 @@ public class AuditDataAcquisitionImpl implements AuditDataAcquisition { private static final Logger LOGGER = LogManager.getLogger(); + @Autowired private OrderAuditEventsService orderAuditEventsService; + @Autowired private OrderLineAuditEventsService orderLineAuditEventsService; - private PieceAuditEventsService pieceAuditEventsService; - @Autowired - public AuditDataAcquisitionImpl(OrderAuditEventsService orderAuditEventsService, - OrderLineAuditEventsService orderLineAuditEventsService, - PieceAuditEventsService pieceAuditEventsService) { - this.orderAuditEventsService = orderAuditEventsService; - this.orderLineAuditEventsService = orderLineAuditEventsService; - this.pieceAuditEventsService = pieceAuditEventsService; - } + private PieceAuditEventsService pieceAuditEventsService; public AuditDataAcquisitionImpl() { SpringContextUtil.autowireDependencies(this, Vertx.currentContext()); @@ -53,7 +47,6 @@ public void getAuditDataAcquisitionOrderById(String orderId, String sortBy, Audi String tenantId = TenantTool.tenantId(okapiHeaders); try { - LOGGER.warn("Trying to get audit events by order id: {}", orderId); orderAuditEventsService.getAuditEventsByOrderId(orderId, sortBy, sortOrder.name(), limit, offset, tenantId) .map(GetAuditDataAcquisitionOrderByIdResponse::respond200WithApplicationJson) .map(Response.class::cast) @@ -72,7 +65,6 @@ public void getAuditDataAcquisitionOrderLineById(String orderLineId, String sort String tenantId = TenantTool.tenantId(okapiHeaders); try { - LOGGER.warn("Trying to get audit events by order line id: {}", orderLineId); orderLineAuditEventsService.getAuditEventsByOrderLineId(orderLineId, sortBy, sortOrder.name(), limit, offset, tenantId) .map(GetAuditDataAcquisitionOrderLineByIdResponse::respond200WithApplicationJson) .map(Response.class::cast)