Skip to content

Commit

Permalink
CIRC-2148: Fixed PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kapil-epam committed Sep 23, 2024
1 parent f60e5af commit 5971432
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,6 @@ private Request removeRelatedRecordInformation(Request request) {
if (printDetails != null && printDetails.containsKey("lastPrintRequester")) {
printDetails.remove("lastPrintRequester");
}


return request;
}

Expand Down
9 changes: 3 additions & 6 deletions src/test/java/api/requests/RequestsAPIRetrievalTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -875,9 +875,7 @@ void printDetailsTest() {
UserResource printDetailsRequester = usersFixture.charlotte();
UUID printDetailsRequesterId = printDetailsRequester.getId();
final IndividualResource smallAngryPlanet = itemsFixture.basedUponSmallAngryPlanet();

final IndividualResource workAddressType = addressTypesFixture.work();

final IndividualResource charlotte = usersFixture.charlotte(
builder -> builder.withAddress(
new Address(workAddressType.getId(),
Expand All @@ -888,15 +886,14 @@ void printDetailsTest() {
"Fake postal code",
"Fake country code")));


requestsFixture.place(new RequestBuilder()
.page()
.forItem(smallAngryPlanet)
.deliverToAddress(workAddressType.getId())
.by(charlotte)
.withPrintDetails(new RequestBuilder.PrintDetails(49, printDetailsRequesterId.toString(), true, "2024-09-16T11:58:22" +
".295+00:00")));

.withPrintDetails(new RequestBuilder
.PrintDetails(49, printDetailsRequesterId.toString(),
true, "2024-09-16T11:58:22.295+00:00")));

final MultipleJsonRecords requests = requestsFixture.getRequests(
queryFromTemplate("printDetails.isPrinted==%s", "true"),
Expand Down
4 changes: 3 additions & 1 deletion src/test/java/api/support/fakes/FakeStorageModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,9 @@ private void getMany(RoutingContext routingContext) {

result.put(collectionPropertyName, new JsonArray(pagedItems));
result.put("totalRecords", filteredItems.size());

if(collectionPropertyName.equalsIgnoreCase("requests")) {
System.out.println();
}
log.debug("Found {} resources: {}", recordTypeName, result.encodePrettily());

HttpServerResponse response = routingContext.response();
Expand Down

0 comments on commit 5971432

Please sign in to comment.