Add test
This commit is contained in:
parent
3ed12ce944
commit
10ff2dd16c
|
@ -173,12 +173,14 @@ public class ReferenceParam extends BaseParam /*implements IQueryParameterType*/
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setChain(String theChain) {
|
public ReferenceParam setChain(String theChain) {
|
||||||
myChain = theChain;
|
myChain = theChain;
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setValue(String theValue) {
|
public ReferenceParam setValue(String theValue) {
|
||||||
myId.setValue(theValue);
|
myId.setValue(theValue);
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -153,6 +153,17 @@ public class FhirResourceDaoDstu3SearchNoFtTest extends BaseJpaDstu3Test {
|
||||||
assertThat(ids, contains(moId.getValue()));
|
assertThat(ids, contains(moId.getValue()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testEmptyChain() {
|
||||||
|
|
||||||
|
SearchParameterMap map = new SearchParameterMap();
|
||||||
|
map.add(Encounter.SP_SUBJECT, new ReferenceAndListParam().addAnd(new ReferenceOrListParam().add((ReferenceParam)new ReferenceParam("subject", "04823543").setChain("identifier"))));
|
||||||
|
IBundleProvider results = myMedicationAdministrationDao.search(map);
|
||||||
|
List<String> ids = toUnqualifiedIdValues(results);
|
||||||
|
|
||||||
|
assertThat(ids, empty());
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testEverythingTimings() throws Exception {
|
public void testEverythingTimings() throws Exception {
|
||||||
String methodName = "testEverythingTimings";
|
String methodName = "testEverythingTimings";
|
||||||
|
|
Loading…
Reference in New Issue