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 f7e9581 commit 19d7e9f
Showing 1 changed file with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 19d7e9f

Please sign in to comment.