Skip to content

Commit 22f9595

Browse files
Fixed test in NonConsultationResourceMapperTest
1 parent 392af7a commit 22f9595

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,18 @@ void When_TransformingContainedResourceToEhrComp_WithUnsupportedComponent_Expect
178178

179179
@Test
180180
void When_TransformingResourceToEhrComp_Expect_IgnoredResourceToBeIgnored() {
181-
setupMock(ResourceTestFileUtils.getFileContent("")); // empty filePath provided as this isn't expected to return anything
182181
String bundle = ResourceTestFileUtils.getFileContent(UNCATAGORISED_IGNORED_RESOURCE_BUNDLE);
183182
Bundle parsedBundle = fhirParseService.parseResource(bundle, Bundle.class);
184183

184+
nonConsultationResourceMapper = new NonConsultationResourceMapper(
185+
messageContext,
186+
randomIdGeneratorService,
187+
encounterComponentsMapper,
188+
new BloodPressureValidator()
189+
);
190+
185191
var translatedOutput = nonConsultationResourceMapper.mapRemainingResourcesToEhrCompositions(parsedBundle);
192+
186193
assertThat(translatedOutput).isEmpty();
187194
}
188195

0 commit comments

Comments
 (0)