From e7ad9a96be4b9ddecd659f3248e3a17bd4d35bac Mon Sep 17 00:00:00 2001 From: James Agnew Date: Mon, 28 Sep 2015 10:40:13 -0400 Subject: [PATCH] Fix build --- hapi-fhir-cobertura/pom.xml | 16 +++++++++++++++- .../ca/uhn/fhir/jpa/dao/BaseFhirDaoTest.java | 11 +++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/hapi-fhir-cobertura/pom.xml b/hapi-fhir-cobertura/pom.xml index 1294b8f682b..d56107003ca 100644 --- a/hapi-fhir-cobertura/pom.xml +++ b/hapi-fhir-cobertura/pom.xml @@ -160,7 +160,21 @@ spring-test test - + + org.eclipse.jetty.websocket + websocket-api + test + + + org.eclipse.jetty.websocket + websocket-client + test + + + org.eclipse.jetty.websocket + websocket-server + test + diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/BaseFhirDaoTest.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/BaseFhirDaoTest.java index 8c9ca80f2cb..8ba5f065cf9 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/BaseFhirDaoTest.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/BaseFhirDaoTest.java @@ -5,7 +5,10 @@ import static org.junit.Assert.assertEquals; import org.junit.Test; import ca.uhn.fhir.context.FhirContext; +import ca.uhn.fhir.model.dstu2.composite.PeriodDt; import ca.uhn.fhir.model.dstu2.resource.Condition; +import ca.uhn.fhir.model.dstu2.resource.Observation; +import ca.uhn.fhir.model.primitive.DateTimeDt; import ca.uhn.fhir.rest.annotation.ResourceParam; import ca.uhn.fhir.rest.param.ReferenceParam; import ca.uhn.fhir.rest.param.ResourceParameter; @@ -20,6 +23,14 @@ public class BaseFhirDaoTest extends BaseJpaTest { assertEquals("2011-01-01T11:12:21.0000Z", match.getLastUpdated().getLowerBound().getValueAsString()); assertEquals(ReferenceParam.class, match.get("patient").get(0).get(0).getClass()); assertEquals("304", ((ReferenceParam)match.get("patient").get(0).get(0)).getIdPart()); + + Observation observation = new Observation(); + + PeriodDt period = new PeriodDt(); + period.setStart(new DateTimeDt("2011-01-02T11:22:33Z")); + period.setEnd(new DateTimeDt("2011-01-02T11:33:33Z")); + observation.setEffective(period); + } }