1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.openehealth.ipf.commons.ihe.fhir.support.translation;
18
19 import org.openehealth.ipf.commons.ihe.fhir.support.DefaultNamingSystemServiceImpl;
20 import org.openehealth.ipf.commons.ihe.fhir.translation.UriMapper;
21
22 import java.io.InputStreamReader;
23
24
25
26
27 public class NamingSystemUriMapperXmlTest extends AbstractSystemUriMapperTest {
28
29 @Override
30 protected UriMapper initMapper(DefaultNamingSystemServiceImpl namingSystemService) {
31 namingSystemService.addNamingSystemsFromXml(
32 new InputStreamReader(getClass().getResourceAsStream("/namingsystems.xml")));
33 return new NamingSystemUriMapper(namingSystemService, "identifiers");
34 }
35
36 }