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:
jamesagnew 2015-01-24 01:49:44 +05:30
parent cc5c014331
commit 0898260232
1 changed files with 9 additions and 1 deletions

View File

@ -19,11 +19,19 @@ public class IdDtTest {
@Test
public void testDetectLocal() {
IdDt id;
IdDt id = new IdDt("#123");
id = new IdDt("#123");
assertEquals("#123", id.getValue());
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());
}
/**