Failing test

This commit is contained in:
dotasek 2022-10-31 14:22:46 -04:00
parent 4be0417345
commit 21037e2cdf
1 changed files with 18 additions and 0 deletions

View File

@ -238,6 +238,8 @@ public class TerminologyCacheTests implements ResourceLoaderTests {
assertTrue(cacheToken.hasVersion());
}
@Test
public void testCodableConceptCacheTokenGeneration() throws IOException, URISyntaxException {
@ -453,4 +455,20 @@ public class TerminologyCacheTests implements ResourceLoaderTests {
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());
}
}