Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DFPL-1414: Fix issue of Bulk Print receiving duplicated requests #4391

Merged
merged 10 commits into from
May 23, 2023
Prev Previous commit
Next Next commit
Fix checkstyle
  • Loading branch information
qasimnawaz-moj committed May 16, 2023
commit 26ccb9052815d4df7b1766e9c27022e90435dee9
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,14 @@ void shouldSendOrdersByPostWhenOrderTranslated() {

assertThat(printRequest.getAllValues()).usingRecursiveComparison()
.isEqualTo(List.of(
printRequest(CASE_ID, ORIGINAL_ORDER, REPRESENTATIVE_POST.getValue(), COVERSHEET_REPRESENTATIVE_BINARY_ENGLISH, ORDER_BINARY),
printRequest(CASE_ID, ORIGINAL_ORDER, RESPONDENT_NOT_REPRESENTED.getParty(), COVERSHEET_RESPONDENT_BINARY_ENGLISH, ORDER_BINARY),
printRequest(CASE_ID, TRANSLATED_ORDER, REPRESENTATIVE_POST.getValue(), COVERSHEET_REPRESENTATIVE_BINARY, ORDER_BINARY),
printRequest(CASE_ID, TRANSLATED_ORDER, RESPONDENT_NOT_REPRESENTED.getParty(), COVERSHEET_RESPONDENT_BINARY, ORDER_BINARY)
printRequest(CASE_ID, ORIGINAL_ORDER, REPRESENTATIVE_POST.getValue(),
COVERSHEET_REPRESENTATIVE_BINARY_ENGLISH, ORDER_BINARY),
printRequest(CASE_ID, ORIGINAL_ORDER, RESPONDENT_NOT_REPRESENTED.getParty(),
COVERSHEET_RESPONDENT_BINARY_ENGLISH, ORDER_BINARY),
printRequest(CASE_ID, TRANSLATED_ORDER, REPRESENTATIVE_POST.getValue(),
COVERSHEET_REPRESENTATIVE_BINARY, ORDER_BINARY),
printRequest(CASE_ID, TRANSLATED_ORDER, RESPONDENT_NOT_REPRESENTED.getParty(),
COVERSHEET_RESPONDENT_BINARY, ORDER_BINARY)
));

List<Element<SentDocuments>> documentsSent = mapper.convertValue(
Expand Down