Skip to content

Commit 325cdff

Browse files
NAID-2571: Update mockito-core to 5.15.2 (#344)
* Update `mockito-core` to `5.15.2` * Update deep mocks in QuestionnaireMapperTest to return null for `user` mock due to changes in the way mocks are handled between versions.
1 parent 637053e commit 325cdff

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

service/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies {
3636
implementation 'org.apache.xmlbeans:xmlbeans:3.1.0'
3737
implementation 'com.rabbitmq.jms:rabbitmq-jms:3.4.0'
3838

39-
testImplementation 'org.mockito:mockito-core:4.4.0'
39+
testImplementation 'org.mockito:mockito-core:5.15.2'
4040
testImplementation 'org.assertj:assertj-core:3.27.3'
4141
testImplementation 'org.springframework.boot:spring-boot-starter-test'
4242
testImplementation 'io.rest-assured:rest-assured:5.5.0'

service/src/test/java/uk/nhs/adaptors/oneoneone/cda/report/mapper/QuestionnaireMapperTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public void setUpMocks() {
5757
when(pathwaysCase.getCaseDetails()).thenReturn(caseDetails);
5858
when(caseDetails.getCaseId()).thenReturn(CASE_ID);
5959
when(pathwaysCase.getPathwayDetails().getPathwayTriageDetails().getPathwayTriageArray(0).getUser()).thenReturn(user);
60+
when(user.getSkillSet()).thenReturn(null);
6061
when(pathwaysCase.getCaseReceiveEnd().toString()).thenReturn(DATE);
6162
when(pathwayUtil.isSetCaseReceiveEnd(pathwaysCase)).thenReturn(true);
6263
when(triageLine.getQuestion().getTriageLogicId().getPathwayOrderNo()).thenReturn(ORDER_NUMBER);

0 commit comments

Comments
 (0)