From 02ecd1a418e82375856fc63e561f9f3baa7d973a Mon Sep 17 00:00:00 2001 From: Vignesh-Kalyanasundaram Date: Tue, 30 Jul 2024 00:29:50 +0530 Subject: [PATCH] CIRC-2100 Adding test cases --- .../java/api/support/fakes/FakePrintEventStatusModule.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/test/java/api/support/fakes/FakePrintEventStatusModule.java b/src/test/java/api/support/fakes/FakePrintEventStatusModule.java index 470a6e5924..628fb2203c 100644 --- a/src/test/java/api/support/fakes/FakePrintEventStatusModule.java +++ b/src/test/java/api/support/fakes/FakePrintEventStatusModule.java @@ -29,7 +29,6 @@ public void register(Router router) { } private void handlePrintEventStatusRequest(RoutingContext routingContext) { - System.out.println("handlePrintEventStatusRequest **************"); var request = routingContext.body().asJsonObject(); var requestIds = request.getJsonArray("requestIds"); if (requestIds.isEmpty()) { @@ -58,7 +57,6 @@ private void handlePrintEventStatusRequest(RoutingContext routingContext) { throw new RuntimeException(e); } }); - Map> groupByRequestIdMap = new LinkedHashMap<>(); requestIds.forEach(requestId -> { var requestList = jsonObjectList.stream().filter(jsonObject -> @@ -66,13 +64,12 @@ private void handlePrintEventStatusRequest(RoutingContext routingContext) { .toList(); groupByRequestIdMap.put((String) requestId, requestList); }); - var jsonObjectResponse = new JsonObject(); var printEventStatusResponses = new ArrayList<>(); jsonObjectResponse.put("printEventsStatusResponses", printEventStatusResponses); requestIds.forEach(id -> { var requestDetail = groupByRequestIdMap.get(id); - if (requestDetail !=null && !requestDetail.isEmpty()) { + if (requestDetail != null && !requestDetail.isEmpty()) { var object = new JsonObject() .put("requestId", id) .put("count", requestDetail.size())