@@ -32,45 +32,45 @@ public void execute(ProcessPluginApi api, Variables variables) throws ErrorBound
32
32
public void testAttachmentBundle (MimetypeService mimetypeService )
33
33
{
34
34
List <Resource > resources = getResourcesNotDocumentReferenceFromPath (
35
- "/ fhir/Bundle/DocumentReference-with-Attachment-Bundle.xml" );
35
+ "fhir/Bundle/DocumentReference-with-Attachment-Bundle.xml" );
36
36
testResourcesStream (resources , mimetypeService );
37
37
}
38
38
39
39
@ PluginTest
40
40
public void testAttachmentCsv (MimetypeService mimetypeService )
41
41
{
42
42
List <Resource > resources = getResourcesNotDocumentReferenceFromPath (
43
- "/ fhir/Bundle/DocumentReference-with-Attachment-CSV.xml" );
43
+ "fhir/Bundle/DocumentReference-with-Attachment-CSV.xml" );
44
44
testResourcesStream (resources , mimetypeService );
45
45
}
46
46
47
47
@ PluginTest
48
48
public void testAttachmentMeasureReport (MimetypeService mimetypeService )
49
49
{
50
50
List <Resource > resources = getResourcesNotDocumentReferenceFromPath (
51
- "/ fhir/Bundle/DocumentReference-with-Attachment-MeasureReport.xml" );
51
+ "fhir/Bundle/DocumentReference-with-Attachment-MeasureReport.xml" );
52
52
testResourcesStream (resources , mimetypeService );
53
53
}
54
54
55
55
@ PluginTest
56
56
public void testAttachmentNdJson (MimetypeService mimetypeService )
57
57
{
58
58
List <Resource > resources = getResourcesNotDocumentReferenceFromPath (
59
- "/ fhir/Bundle/DocumentReference-with-Attachment-NdJson.xml" );
59
+ "fhir/Bundle/DocumentReference-with-Attachment-NdJson.xml" );
60
60
testResourcesStream (resources , mimetypeService );
61
61
}
62
62
63
63
@ PluginTest
64
64
public void testAttachmentZip (MimetypeService mimetypeService )
65
65
{
66
66
List <Resource > resources = getResourcesNotDocumentReferenceFromPath (
67
- "/ fhir/Bundle/DocumentReference-with-Attachment-ZIP.xml" );
67
+ "fhir/Bundle/DocumentReference-with-Attachment-ZIP.xml" );
68
68
testResourcesStream (resources , mimetypeService );
69
69
}
70
70
71
71
private List <Resource > getResourcesNotDocumentReferenceFromPath (String pathToBundle )
72
72
{
73
- try (InputStream input = getClass ().getResourceAsStream (pathToBundle ))
73
+ try (InputStream input = MimetypeServiceTest . class . getClassLoader ().getResourceAsStream (pathToBundle ))
74
74
{
75
75
Bundle bundle = FhirContext .forR4 ().newXmlParser ().parseResource (Bundle .class , input );
76
76
return bundle .getEntry ().stream ().filter (Bundle .BundleEntryComponent ::hasResource )
0 commit comments