File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
service/src/test/java/uk/nhs/adaptors/gp2gp/ehr/mapper Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -184,10 +184,10 @@ void When_MappingInvalidAllergyIntoleranceJson_Expect_Exception(String inputJson
184184 @ Test
185185 void When_ConfidentialityServiceReturnsConfidentialityCode_Expect_MessageContainsConfidentialityCode () {
186186 final var allergyIntolerance = parseAllergyIntoleranceFromJsonFile (INPUT_JSON_WITH_OPTIONAL_TEXT_FIELDS );
187- final var message = allergyStructureMapper .mapAllergyIntoleranceToAllergyStructure (allergyIntolerance );
188-
189187 when (confidentialityService .generateConfidentialityCode (allergyIntolerance ))
190- .thenReturn (Optional .of (CONFIDENTIALITY_CODE ));
188+ .thenReturn (Optional .of (CONFIDENTIALITY_CODE ));
189+
190+ final var message = allergyStructureMapper .mapAllergyIntoleranceToAllergyStructure (allergyIntolerance );
191191
192192 assertThat (message ).contains (CONFIDENTIALITY_CODE );
193193 assertThat (StringUtils .countOccurrencesOf (message , CONFIDENTIALITY_CODE ))
You can’t perform that action at this time.
0 commit comments