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

CIV-16009 New text for docs being translated #6216

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -268,4 +268,21 @@ && isHearingLessThanDaysAway(3 * 7)
&& (lastOrderDate.isEmpty()
|| lastOrderDate.get().isBefore(bundleDate.get()));
}

@Override
public boolean isWaitingForClaimantIntentDocUploadPreDefendantNocOnline() {
return isWaitingForClaimantIntentDocUpload()
&& !featureToggleService.isDefendantNoCOnlineForCase(caseData);
}

@Override
public boolean isWaitingForClaimantIntentDocUploadPostDefendantNocOnline() {
return isWaitingForClaimantIntentDocUpload()
&& featureToggleService.isDefendantNoCOnlineForCase(caseData);
}

private boolean isWaitingForClaimantIntentDocUpload() {
return caseData.isRespondentResponseFullDefence() && caseData.getApplicant1ResponseDate() != null
&& caseData.getCcdState() == CaseState.AWAITING_APPLICANT_INTENTION && caseData.isClaimantBilingual();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,6 @@ public boolean defendantRespondedWithPreferredLanguageWelsh() {
&& caseData.getCcdState() == CaseState.AWAITING_RESPONDENT_ACKNOWLEDGEMENT;
}

public boolean isWaitingForClaimantIntentDocUpload() {
return caseData.isRespondentResponseFullDefence() && caseData.getApplicant1ResponseDate() != null
&& caseData.getCcdState() == CaseState.AWAITING_APPLICANT_INTENTION && caseData.isClaimantBilingual();
}

public boolean isNocForDefendant() {
return isPaperResponse() && (caseData.getBusinessProcess() != null
&& CaseEvent.APPLY_NOC_DECISION_DEFENDANT_LIP.name()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,13 +389,6 @@ public boolean defendantRespondedWithPreferredLanguageWelsh() {
return caseData.isRespondentResponseBilingual() && caseData.getCcdState() == CaseState.AWAITING_RESPONDENT_ACKNOWLEDGEMENT;
}

public boolean isWaitingForClaimantIntentDocUpload() {
return caseData.isRespondentResponseFullDefence()
&& caseData.getApplicant1ResponseDate() != null
&& caseData.getCcdState() == CaseState.AWAITING_APPLICANT_INTENTION
&& caseData.isClaimantBilingual();
}

@Override
public boolean isClaimSubmittedNotPaidOrFailedNotHwF() {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ public interface Claim {

boolean defendantRespondedWithPreferredLanguageWelsh();

boolean isWaitingForClaimantIntentDocUpload();
boolean isWaitingForClaimantIntentDocUploadPreDefendantNocOnline();

boolean isWaitingForClaimantIntentDocUploadPostDefendantNocOnline();

boolean isClaimSubmittedNotPaidOrFailedNotHwF();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ public enum DashboardClaimStatus {
IN_MEDIATION(
Claim::isMediationPending
),
WAITING_FOR_CLAIMANT_INTENT_DOC_UPLOAD(
Claim::isWaitingForClaimantIntentDocUpload
WAITING_FOR_CLAIMANT_INTENT_DOC_UPLOAD_PRE_DEF_NOC_ONLINE(
Claim::isWaitingForClaimantIntentDocUploadPreDefendantNocOnline
),
WAITING_FOR_CLAIMANT_INTENT_DOC_UPLOAD_POST_DEF_NOC_ONLINE(
Claim::isWaitingForClaimantIntentDocUploadPostDefendantNocOnline
),
CLAIM_ENDED(
Claim::hasClaimEnded
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/uk/gov/hmcts/reform/cmc/model/CmcClaim.java
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,12 @@ public boolean defendantRespondedWithPreferredLanguageWelsh() {
}

@Override
public boolean isWaitingForClaimantIntentDocUpload() {
public boolean isWaitingForClaimantIntentDocUploadPreDefendantNocOnline() {
return false;
}

@Override
public boolean isWaitingForClaimantIntentDocUploadPostDefendantNocOnline() {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ void givenBilingualLanguageIsWelsh_ClaimantIntentDocUploadPending_thenReturnDocU
DashboardClaimStatus status = ccdClaimStatusDashboardFactory.getDashboardClaimStatus(new CcdDashboardClaimantClaimMatcher(
caseData, featureToggleService, Collections.emptyList()));

assertThat(status).isEqualTo(DashboardClaimStatus.WAITING_FOR_CLAIMANT_INTENT_DOC_UPLOAD);
assertThat(status).isEqualTo(DashboardClaimStatus.WAITING_FOR_CLAIMANT_INTENT_DOC_UPLOAD_PRE_DEF_NOC_ONLINE);
}

@Test
Expand Down