mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-08 05:48:12 +00:00
Failing test
This commit is contained in:
parent
4be0417345
commit
21037e2cdf
@ -238,6 +238,8 @@ public class TerminologyCacheTests implements ResourceLoaderTests {
|
|||||||
assertTrue(cacheToken.hasVersion());
|
assertTrue(cacheToken.hasVersion());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCodableConceptCacheTokenGeneration() throws IOException, URISyntaxException {
|
public void testCodableConceptCacheTokenGeneration() throws IOException, URISyntaxException {
|
||||||
|
|
||||||
@ -453,4 +455,20 @@ public class TerminologyCacheTests implements ResourceLoaderTests {
|
|||||||
|
|
||||||
assertEquals("http://dummy.org", extracted);
|
assertEquals("http://dummy.org", extracted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testCodingWithSystemCacheTokenGenerationWithPipeCharSystem() throws IOException, URISyntaxException {
|
||||||
|
|
||||||
|
TerminologyCache terminologyCache = createTerminologyCache();
|
||||||
|
ValueSet valueSet = new ValueSet();
|
||||||
|
|
||||||
|
Coding coding = new Coding();
|
||||||
|
coding.setCode("dummyCode");
|
||||||
|
coding.setSystem("http://terminology.hl7.org/CodeSystem/dummy|System");
|
||||||
|
coding.setVersion("dummyVersion");
|
||||||
|
TerminologyCache.CacheToken cacheToken = terminologyCache.generateValidationToken(CacheTestUtils.validationOptions,
|
||||||
|
coding, valueSet);
|
||||||
|
assertEquals("dummyXSystem", cacheToken.getName());
|
||||||
|
assertTrue(cacheToken.hasVersion());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user