|
13 | 13 | import uk.gov.hmcts.probate.client.submit.SubmitServiceApi; |
14 | 14 | import uk.gov.hmcts.probate.core.service.mapper.ExecutorApplyingToInvitationMapper; |
15 | 15 | import uk.gov.hmcts.reform.probate.model.PhonePin; |
16 | | -import uk.gov.hmcts.reform.probate.model.ProbateType; |
17 | 16 | import uk.gov.hmcts.reform.probate.model.cases.CaseInfo; |
18 | 17 | import uk.gov.hmcts.reform.probate.model.cases.CaseType; |
19 | 18 | import uk.gov.hmcts.reform.probate.model.cases.CollectionMember; |
@@ -88,8 +87,8 @@ public void setUp() throws Exception { |
88 | 87 | when(securityUtils.getAuthorisation()).thenReturn(AUTHORIZATION); |
89 | 88 | when(securityUtils.getServiceAuthorisation()).thenReturn(SERVICE_AUTHORIZATION); |
90 | 89 |
|
91 | | - when(submitServiceApi.getCase(AUTHORIZATION, SERVICE_AUTHORIZATION, |
92 | | - formdataId, ProbateType.PA.getCaseType().name())).thenReturn(mockProbateCaseDetails); |
| 90 | + when(submitServiceApi.getCaseById(AUTHORIZATION, SERVICE_AUTHORIZATION, |
| 91 | + formdataId)).thenReturn(mockProbateCaseDetails); |
93 | 92 | when(mockProbateCaseDetails.getCaseData()).thenReturn(mockGrantOfRepresentationData); |
94 | 93 | when(mockProbateCaseDetails.getCaseInfo()).thenReturn(mockCaseInfo); |
95 | 94 | when(mockCaseInfo.getCaseId()).thenReturn("123456789101112"); |
@@ -594,8 +593,9 @@ public void shouldGetAllInviteData() { |
594 | 593 | } |
595 | 594 |
|
596 | 595 | private void verifyGetCaseCalls() { |
597 | | - verify(submitServiceApi).getCase(AUTHORIZATION, SERVICE_AUTHORIZATION, |
598 | | - formdataId, ProbateType.PA.getCaseType().name()); |
| 596 | + |
| 597 | + verify(submitServiceApi).getCaseById(AUTHORIZATION, SERVICE_AUTHORIZATION, |
| 598 | + formdataId); |
599 | 599 | verify(mockProbateCaseDetails).getCaseData(); |
600 | 600 | } |
601 | 601 |
|
|
0 commit comments