Skip to content

Commit 2b0fbee

Browse files
NIAD-1136 remove lenient
1 parent 7945a32 commit 2b0fbee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/mapper/AgentDirectoryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package uk.nhs.adaptors.gp2gp.ehr.mapper;
22

33
import static org.assertj.core.api.Assertions.assertThat;
4-
import static org.mockito.Mockito.lenient;
54

5+
import static org.mockito.Mockito.when;
66
import static uk.nhs.adaptors.gp2gp.utils.IdUtil.buildReference;
77

88
import java.util.Map;
@@ -40,7 +40,7 @@ class AgentDirectoryTest {
4040

4141
@BeforeEach
4242
public void setUp() {
43-
lenient().when(randomIdGeneratorService.createNewId()).thenReturn(GENERATED_ID_1, GENERATED_ID_2);
43+
when(randomIdGeneratorService.createNewId()).thenReturn(GENERATED_ID_1, GENERATED_ID_2);
4444

4545
String jsonInput = ResourceTestFileUtils.getFileContent(INPUT_BUNDLE);
4646
inputBundle = new FhirParseService().parseResource(jsonInput, Bundle.class);

0 commit comments

Comments
 (0)