Skip to content

Commit 561088b

Browse files
Removed lenient from AllergyStructureMapperTest
1 parent 4c45f7f commit 561088b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,13 @@ private static Stream<Arguments> resourceFileParams() {
9292
private static Stream<Arguments> resourceFileParamsWithEnvironmentCategoryAndConditionRelatedData() {
9393
return Stream.of(
9494
Arguments.of("input-with-environment-category.json", "expected-uses-environment-category.xml"),
95-
Arguments.of("input-with-relation-to-condition-with-one-note.json", "expected-uses-relation-to-condition-with-one-note.xml"),
96-
Arguments.of("input-with-relation-to-condition-with-two-notes.json", "expected-uses-relation-to-condition-with-two-notes.xml"),
97-
Arguments.of("input-with-no-relation-to-condition.json", "expected-uses-no-relation-to-condition.xml")
95+
Arguments.of("input-with-relation-to-condition-with-one-note.json",
96+
"expected-uses-relation-to-condition-with-one-note.xml"),
97+
Arguments.of
98+
("input-with-relation-to-condition-with-two-notes.json",
99+
"expected-uses-relation-to-condition-with-two-notes.xml"),
100+
Arguments.of
101+
("input-with-no-relation-to-condition.json", "expected-uses-no-relation-to-condition.xml")
98102
);
99103
}
100104

@@ -149,7 +153,8 @@ void When_MappingAllergyIntoleranceJson_Expect_AllergyStructureXmlOutput(String
149153

150154
@ParameterizedTest
151155
@MethodSource("resourceFileParamsWithEnvironmentCategoryAndConditionRelatedData")
152-
void When_MappingAllergyIntoleranceJson_Expect_AllergyStructureXmlOutputWithEnvironmentCategoryAndConditionRelatedData(String inputJson, String outputXml) {
156+
void When_MappingAllergyIntoleranceJson_Expect_AllergyStructureXmlOutputWithEnvironmentCategoryAndConditionRelatedData
157+
(String inputJson, String outputXml) {
153158
final var expectedMessage = ResourceTestFileUtils.getFileContent(TEST_FILE_DIRECTORY + outputXml);
154159
final var allergyIntolerance = parseAllergyIntoleranceFromJsonFile(TEST_FILE_DIRECTORY + inputJson);
155160

0 commit comments

Comments
 (0)