add tests for generic model-based, dstu3, and r4

This commit is contained in:
bdenton 2018-11-09 14:01:08 -08:00
parent c7a7a079b2
commit 5e225375c9
1 changed files with 489 additions and 420 deletions

View File

@ -104,6 +104,11 @@
<artifactId>hapi-fhir-structures-dstu3</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-r4</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-hl7org-dstu2</artifactId>
@ -119,6 +124,11 @@
<artifactId>hapi-fhir-validation-resources-dstu3</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-validation-resources-r4</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<executions>
<!--
@ -174,7 +184,7 @@
</configuration>
</execution>
<execution>
<id>generic_multi</id>
<id>generic_multi_dstu2</id>
<goals>
<goal>generate-multi-files</goal>
</goals>
@ -191,6 +201,44 @@
</includeResources>
</configuration>
</execution>
<execution>
<id>generic_multi_dstu3</id>
<goals>
<goal>generate-multi-files</goal>
</goals>
<configuration>
<version>dstu3</version>
<generateResources>true</generateResources>
<resourceSource>model</resourceSource>
<templateFile>${project.basedir}/src/test/resources/templates/resource_test.vm</templateFile>
<targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
<targetPackage>ca.uhn.test.generic.multi.dstu3</targetPackage>
<filenameSuffix>ResourceTest.java</filenameSuffix>
<includeResources>
<includeResource>patient</includeResource>
<includeResource>organization</includeResource>
</includeResources>
</configuration>
</execution>
<execution>
<id>generic_multi_r4</id>
<goals>
<goal>generate-multi-files</goal>
</goals>
<configuration>
<version>r4</version>
<generateResources>true</generateResources>
<resourceSource>model</resourceSource>
<templateFile>${project.basedir}/src/test/resources/templates/resource_test.vm</templateFile>
<targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
<targetPackage>ca.uhn.test.generic.multi.r4</targetPackage>
<filenameSuffix>ResourceTest.java</filenameSuffix>
<includeResources>
<includeResource>patient</includeResource>
<includeResource>organization</includeResource>
</includeResources>
</configuration>
</execution>
<execution>
<id>generic_multi_json</id>
<goals>
@ -199,6 +247,7 @@
<configuration>
<version>dstu2</version>
<generateResources>true</generateResources>
<resourceSource>spreadsheet</resourceSource>
<templateFile>${project.basedir}/src/test/resources/templates/resource_map.vm</templateFile>
<velocityPath>${project.basedir}/src/test/resources/macros</velocityPath>
<targetResourceDirectory>${project.build.directory}/generated-resources/tinder</targetResourceDirectory>
@ -213,7 +262,7 @@
</configuration>
</execution>
<execution>
<id>generic_single</id>
<id>generic_single_dstu2</id>
<goals>
<goal>generate-single-file</goal>
</goals>
@ -231,6 +280,26 @@
</includeResources>
</configuration>
</execution>
<execution>
<id>generic_single_r4</id>
<goals>
<goal>generate-single-file</goal>
</goals>
<configuration>
<version>r4</version>
<generateResources>true</generateResources>
<resourceSource>model</resourceSource>
<templateFile>${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm</templateFile>
<targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
<targetPackage>ca.uhn.test.generic.single.r4</targetPackage>
<packageBase>ca.uhn.test.generic.multi.r4</packageBase>
<targetFile>TestConfigR4.java</targetFile>
<includeResources>
<includeResource>patient</includeResource>
<includeResource>organization</includeResource>
</includeResources>
</configuration>
</execution>
<execution>
<id>generic_single_json</id>
<goals>