diff --git a/hapi-fhir-converter/pom.xml b/hapi-fhir-converter/pom.xml
index 30f39fdbb73..cfebc8a9f15 100644
--- a/hapi-fhir-converter/pom.xml
+++ b/hapi-fhir-converter/pom.xml
@@ -175,6 +175,23 @@
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+
+ true
+
+
+
+ default-prepare-agent
+
+ prepare-agent
+
+
+
+
diff --git a/hapi-fhir-igpacks/pom.xml b/hapi-fhir-igpacks/pom.xml
index e3e72335010..4e369e28cab 100644
--- a/hapi-fhir-igpacks/pom.xml
+++ b/hapi-fhir-igpacks/pom.xml
@@ -47,6 +47,21 @@
true
+
+ org.jacoco
+ jacoco-maven-plugin
+
+ true
+
+
+
+ default-prepare-agent
+
+ prepare-agent
+
+
+
+
diff --git a/hapi-fhir-jaxrsserver-base/pom.xml b/hapi-fhir-jaxrsserver-base/pom.xml
index d4f6c967f6a..47d8f3872fb 100644
--- a/hapi-fhir-jaxrsserver-base/pom.xml
+++ b/hapi-fhir-jaxrsserver-base/pom.xml
@@ -173,4 +173,26 @@
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+
+ true
+
+
+
+ default-prepare-agent
+
+ prepare-agent
+
+
+
+
+
+
+
+
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchFilterParser.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchFilterParser.java
index 3c630fb32a3..af38832f56a 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchFilterParser.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchFilterParser.java
@@ -277,7 +277,7 @@ public class SearchFilterParser {
cursor++;
result.setFilter(parseOpen());
if (peek() != FilterLexType.fsltCloseSq) {
- throw new FilterSyntaxException(String.format("Expected ']' at %d but found %c",
+ throw new FilterSyntaxException(String.format("Expected ']' at %d but found %s",
cursor,
peekCh()));
}
@@ -287,13 +287,13 @@ public class SearchFilterParser {
if (peek() == FilterLexType.fsltDot) {
cursor++;
if (peek() != FilterLexType.fsltName) {
- throw new FilterSyntaxException(String.format("Unexpected Character %c at %d",
+ throw new FilterSyntaxException(String.format("Unexpected Character %s at %d",
peekCh(),
cursor));
}
result.setNext(parsePath(consumeName()));
} else if (result.getFilter() != null) {
- throw new FilterSyntaxException(String.format("Expected '.' at %d but found %c",
+ throw new FilterSyntaxException(String.format("Expected '.' at %d but found %s",
cursor,
peekCh()));
}
diff --git a/hapi-fhir-test-utilities/src/main/java/ca/uhn/fhir/test/utilities/server/RestfulServerRule.java b/hapi-fhir-test-utilities/src/main/java/ca/uhn/fhir/test/utilities/server/RestfulServerRule.java
index cf77892a3ad..e930e599eee 100644
--- a/hapi-fhir-test-utilities/src/main/java/ca/uhn/fhir/test/utilities/server/RestfulServerRule.java
+++ b/hapi-fhir-test-utilities/src/main/java/ca/uhn/fhir/test/utilities/server/RestfulServerRule.java
@@ -32,7 +32,6 @@ import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.ServletHandler;
import org.eclipse.jetty.servlet.ServletHolder;
-import org.junit.BeforeClass;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;
@@ -75,7 +74,6 @@ public class RestfulServerRule implements TestRule {
myHttpClient.close();
}
- @BeforeClass
private void startServer() throws Exception {
myServer = new Server(0);
diff --git a/hapi-tinder-test/pom.xml b/hapi-tinder-test/pom.xml
index b8674b51c9f..9e07aca1de0 100644
--- a/hapi-tinder-test/pom.xml
+++ b/hapi-tinder-test/pom.xml
@@ -1,489 +1,504 @@
-
- 4.0.0
-
-
- ca.uhn.hapi.fhir
- hapi-fhir
- 4.2.0-SNAPSHOT
- ../pom.xml
-
-
- hapi-tinder-test
- jar
-
- HAPI Tinder Plugin - Test Project
-
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-base
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-structures-dstu2
- ${project.version}
-
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-structures-dstu2.1
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-base
-
-
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-structures-dstu3
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-structures-hl7org-dstu2
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-validation-resources-dstu2
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-validation-resources-dstu3
- ${project.version}
-
-
- junit
- junit
- test
-
-
-
-
-
-
-
-
-
- ca.uhn.hapi.fhir
- hapi-tinder-plugin
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-base
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-structures-dstu2
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-structures-dstu2.1
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-base
-
-
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-structures-dstu3
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-structures-r4
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-structures-hl7org-dstu2
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-validation-resources-dstu2
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-validation-resources-dstu3
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-validation-resources-r4
- ${project.version}
-
-
-
-
-
- generalstructs
-
- generate-structures
-
-
- ca.uhn.test.realstructs
- dstu2
-
- patient
- valueset
- organization
- device
- location
- practitioner
- list
- auditevent
-
- true
-
-
-
- generic_multi_dstu2
-
- generate-multi-files
-
-
- dstu2
- true
- ${project.basedir}/src/test/resources/templates/resource_test.vm
- ${project.build.directory}/generated-sources/tinder
- ca.uhn.test.generic.multi
- ResourceTest.java
-
- patient
- organization
-
-
-
-
- generic_multi_dstu3
-
- generate-multi-files
-
-
- dstu3
- true
- model
- ${project.basedir}/src/test/resources/templates/resource_test.vm
- ${project.build.directory}/generated-sources/tinder
- ca.uhn.test.generic.multi.dstu3
- ResourceTest.java
-
- patient
- organization
-
-
-
-
- generic_multi_r4
-
- generate-multi-files
-
-
- r4
- true
- model
- ${project.basedir}/src/test/resources/templates/resource_test.vm
- ${project.build.directory}/generated-sources/tinder
- ca.uhn.test.generic.multi.r4
- ResourceTest.java
-
- patient
- organization
-
-
-
-
- generic_multi_json
-
- generate-multi-files
-
-
- dstu2
- true
- spreadsheet
- ${project.basedir}/src/test/resources/templates/resource_map.vm
- ${project.basedir}/src/test/resources/macros
- ${project.build.directory}/generated-resources/tinder
- maps
- _Map.json
-
- patient
- organization
- bundle
- composition
-
-
-
-
- generic_single_dstu2
-
- generate-single-file
-
-
- dstu2
- true
- ${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm
- ${project.build.directory}/generated-sources/tinder
- ca.uhn.test.generic.single
- ca.uhn.test.generic.multi
- TestConfigDstu2.java
-
- patient
- organization
-
-
-
-
- generic_single_r4
-
- generate-single-file
-
-
- r4
- true
- model
- ${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm
- ${project.build.directory}/generated-sources/tinder
- ca.uhn.test.generic.single.r4
- ca.uhn.test.generic.multi.r4
- TestConfigR4.java
-
- patient
- organization
-
-
-
-
- generic_single_json
-
- generate-single-file
-
-
- dstu2
- true
- ${project.basedir}/src/test/resources/templates/composite_map.vm
- ${project.basedir}/src/test/resources/macros
- ${project.build.directory}/generated-resources/tinder
- maps
- Datatypes_Dstu2.json
-
- patient
- organization
-
-
-
-
-
-
-
- maven-antrun-plugin
-
-
- testTinderTask
- generate-sources
-
- run
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-base
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-structures-dstu2
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-structures-dstu2.1
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-base
-
-
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-structures-dstu3
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-structures-hl7org-dstu2
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-validation-resources-dstu2
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-fhir-validation-resources-dstu3
- ${project.version}
-
-
- ca.uhn.hapi.fhir
- hapi-tinder-plugin
- ${project.version}
-
-
-
-
- org.apache.maven.plugins
- maven-deploy-plugin
-
- true
-
-
-
- org.codehaus.mojo
- build-helper-maven-plugin
-
-
- add-source
- generate-sources
-
- add-source
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- org.eclipse.m2e
- lifecycle-mapping
- 1.0.0
-
-
-
-
-
- ca.uhn.hapi.fhir
- hapi-tinder-plugin
- [0.4-SNAPSHOT,)
-
- generate-structures
-
-
-
-
-
-
-
-
- ca.uhn.hapi.fhir
- hapi-tinder-plugin
- [0.4-SNAPSHOT,)
-
- generate-multi-files
-
-
-
-
-
-
-
-
- ca.uhn.hapi.fhir
- hapi-tinder-plugin
- [0.4-SNAPSHOT,)
-
- generate-single-file
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ${basedir}/src/main/resources
-
-
- ${basedir}/target/generated-resources/tinder
-
-
-
-
-
+
+ 4.0.0
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir
+ 4.2.0-SNAPSHOT
+ ../pom.xml
+
+
+ hapi-tinder-test
+ jar
+
+ HAPI Tinder Plugin - Test Project
+
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-base
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-structures-dstu2
+ ${project.version}
+
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-structures-dstu2.1
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-base
+
+
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-structures-dstu3
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-structures-hl7org-dstu2
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-validation-resources-dstu2
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-validation-resources-dstu3
+ ${project.version}
+
+
+ junit
+ junit
+ test
+
+
+
+
+
+
+
+
+
+ ca.uhn.hapi.fhir
+ hapi-tinder-plugin
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-base
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-structures-dstu2
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-structures-dstu2.1
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-base
+
+
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-structures-dstu3
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-structures-r4
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-structures-hl7org-dstu2
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-validation-resources-dstu2
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-validation-resources-dstu3
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-validation-resources-r4
+ ${project.version}
+
+
+
+
+
+ generalstructs
+
+ generate-structures
+
+
+ ca.uhn.test.realstructs
+ dstu2
+
+ patient
+ valueset
+ organization
+ device
+ location
+ practitioner
+ list
+ auditevent
+
+ true
+
+
+
+ generic_multi_dstu2
+
+ generate-multi-files
+
+
+ dstu2
+ true
+ ${project.basedir}/src/test/resources/templates/resource_test.vm
+ ${project.build.directory}/generated-sources/tinder
+ ca.uhn.test.generic.multi
+ ResourceTest.java
+
+ patient
+ organization
+
+
+
+
+ generic_multi_dstu3
+
+ generate-multi-files
+
+
+ dstu3
+ true
+ model
+ ${project.basedir}/src/test/resources/templates/resource_test.vm
+ ${project.build.directory}/generated-sources/tinder
+ ca.uhn.test.generic.multi.dstu3
+ ResourceTest.java
+
+ patient
+ organization
+
+
+
+
+ generic_multi_r4
+
+ generate-multi-files
+
+
+ r4
+ true
+ model
+ ${project.basedir}/src/test/resources/templates/resource_test.vm
+ ${project.build.directory}/generated-sources/tinder
+ ca.uhn.test.generic.multi.r4
+ ResourceTest.java
+
+ patient
+ organization
+
+
+
+
+ generic_multi_json
+
+ generate-multi-files
+
+
+ dstu2
+ true
+ spreadsheet
+ ${project.basedir}/src/test/resources/templates/resource_map.vm
+ ${project.basedir}/src/test/resources/macros
+ ${project.build.directory}/generated-resources/tinder
+ maps
+ _Map.json
+
+ patient
+ organization
+ bundle
+ composition
+
+
+
+
+ generic_single_dstu2
+
+ generate-single-file
+
+
+ dstu2
+ true
+ ${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm
+ ${project.build.directory}/generated-sources/tinder
+ ca.uhn.test.generic.single
+ ca.uhn.test.generic.multi
+ TestConfigDstu2.java
+
+ patient
+ organization
+
+
+
+
+ generic_single_r4
+
+ generate-single-file
+
+
+ r4
+ true
+ model
+ ${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm
+ ${project.build.directory}/generated-sources/tinder
+ ca.uhn.test.generic.single.r4
+ ca.uhn.test.generic.multi.r4
+ TestConfigR4.java
+
+ patient
+ organization
+
+
+
+
+ generic_single_json
+
+ generate-single-file
+
+
+ dstu2
+ true
+ ${project.basedir}/src/test/resources/templates/composite_map.vm
+ ${project.basedir}/src/test/resources/macros
+ ${project.build.directory}/generated-resources/tinder
+ maps
+ Datatypes_Dstu2.json
+
+ patient
+ organization
+
+
+
+
+
+
+
+ maven-antrun-plugin
+
+
+ testTinderTask
+ generate-sources
+
+ run
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-base
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-structures-dstu2
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-structures-dstu2.1
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-base
+
+
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-structures-dstu3
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-structures-hl7org-dstu2
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-validation-resources-dstu2
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-fhir-validation-resources-dstu3
+ ${project.version}
+
+
+ ca.uhn.hapi.fhir
+ hapi-tinder-plugin
+ ${project.version}
+
+
+
+
+ org.apache.maven.plugins
+ maven-deploy-plugin
+
+ true
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ add-source
+ generate-sources
+
+ add-source
+
+
+
+
+
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+
+ true
+
+
+
+ default-prepare-agent
+
+ prepare-agent
+
+
+
+
+
+
+
+
+
+ org.eclipse.m2e
+ lifecycle-mapping
+ 1.0.0
+
+
+
+
+
+ ca.uhn.hapi.fhir
+ hapi-tinder-plugin
+ [0.4-SNAPSHOT,)
+
+ generate-structures
+
+
+
+
+
+
+
+
+ ca.uhn.hapi.fhir
+ hapi-tinder-plugin
+ [0.4-SNAPSHOT,)
+
+ generate-multi-files
+
+
+
+
+
+
+
+
+ ca.uhn.hapi.fhir
+ hapi-tinder-plugin
+ [0.4-SNAPSHOT,)
+
+ generate-single-file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ${basedir}/src/main/resources
+
+
+ ${basedir}/target/generated-resources/tinder
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
index 6cfc677e339..bb8682d9fba 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2262,6 +2262,21 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+
+ true
+
+
+
+ default-prepare-agent
+
+ prepare-agent
+
+
+
+