Skip to content

Commit

Permalink
DTSCCI-1355: fix npe on defendent resp
Browse files Browse the repository at this point in the history
  • Loading branch information
rishikrsharma committed Dec 16, 2024
1 parent 1294376 commit 8ac6b8b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -519,13 +519,15 @@ void configureDashboardNotificationsForDefendantResponseFullDefenceDisputeAllCla
@Test
void willNotConfigureDashboardNotificationsForDefendantResponseWhenRespondent1ClaimResponseTypeForSpecIsNull() {
//given
when(featureToggleService.isLipVLipEnabled()).thenReturn(true);
LocalDate paymentDate = OffsetDateTime.now().toLocalDate().minusDays(5);
CaseData caseData = CaseDataBuilder.builder().atStateRespondentFullDefenceSpec().build()
.toBuilder()
.legacyCaseReference("reference")
.ccdCaseReference(12345673L)
.applicant1Represented(YesOrNo.NO)
.responseClaimTrack(SMALL_CLAIM.name())
.respondent1ClaimResponseTypeForSpec(null)
.respondToClaim(RespondToClaim.builder()
.howMuchWasPaid(new BigDecimal(1000))
.whenWasThisAmountPaid(paymentDate)
Expand Down

0 comments on commit 8ac6b8b

Please sign in to comment.