Add one more test for #93 - I am unable to reproduce this issue so far; I think it may have been resolved as a result of a chackin in 0.8
This commit is contained in:
parent
cc5c014331
commit
0898260232
|
@ -19,11 +19,19 @@ public class IdDtTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testDetectLocal() {
|
public void testDetectLocal() {
|
||||||
|
IdDt id;
|
||||||
|
|
||||||
IdDt id = new IdDt("#123");
|
id = new IdDt("#123");
|
||||||
assertEquals("#123", id.getValue());
|
assertEquals("#123", id.getValue());
|
||||||
assertTrue(id.isLocal());
|
assertTrue(id.isLocal());
|
||||||
|
|
||||||
|
id = new IdDt("#Medication/499059CE-CDD4-48BC-9014-528A35D15CED/_history/1");
|
||||||
|
assertEquals("#Medication/499059CE-CDD4-48BC-9014-528A35D15CED/_history/1", id.getValue());
|
||||||
|
assertTrue(id.isLocal());
|
||||||
|
|
||||||
|
id = new IdDt("http://example.com/Patient/33#123");
|
||||||
|
assertEquals("http://example.com/Patient/33#123", id.getValue());
|
||||||
|
assertFalse(id.isLocal());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue