Skip to content

Commit ecf8efb

Browse files
checkstyle
1 parent 503c05f commit ecf8efb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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))

0 commit comments

Comments
 (0)