diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaSystemProvider.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaSystemProvider.java index aa279137471..9bfc3a1cd86 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaSystemProvider.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaSystemProvider.java @@ -38,7 +38,7 @@ import org.springframework.beans.factory.annotation.Required; import javax.servlet.http.HttpServletRequest; import java.util.Date; -public class BaseJpaSystemProvider extends BaseJpaProvider { +public class BaseJpaSystemProvider extends BaseJpaProvider implements IJpaSystemProvider { public static final String MARK_ALL_RESOURCES_FOR_REINDEXING = "$mark-all-resources-for-reindexing"; public static final String PERFORM_REINDEXING_PASS = "$perform-reindexing-pass"; diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/IJpaSystemProvider.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/IJpaSystemProvider.java new file mode 100644 index 00000000000..95318a8f8ab --- /dev/null +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/IJpaSystemProvider.java @@ -0,0 +1,8 @@ +package ca.uhn.fhir.jpa.provider; + +/** + * Marker interface for the JPA system provider + */ +public interface IJpaSystemProvider { + // nothing for now +} diff --git a/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/rest/server/OperationDuplicateServerHl7OrgDstu2Test.java b/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/rest/server/OperationDuplicateServerHl7OrgDstu2Test.java index a3158f40fd5..80d0db2d7df 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/rest/server/OperationDuplicateServerHl7OrgDstu2Test.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/rest/server/OperationDuplicateServerHl7OrgDstu2Test.java @@ -47,9 +47,9 @@ public class OperationDuplicateServerHl7OrgDstu2Test { ourLog.info(response); Conformance resp = ourCtx.newXmlParser().parseResource(Conformance.class, response); - assertEquals(1, resp.getRest().get(0).getOperation().size()); + assertEquals(3, resp.getRest().get(0).getOperation().size()); assertEquals("$myoperation", resp.getRest().get(0).getOperation().get(0).getName()); - assertEquals("OperationDefinition/myoperation", resp.getRest().get(0).getOperation().get(0).getDefinition().getReference()); + assertEquals("OperationDefinition/-s-myoperation", resp.getRest().get(0).getOperation().get(0).getDefinition().getReference()); } // OperationDefinition