Skip to content

Commit 5ea883d

Browse files
Innovarzwenggibson9583
authored andcommitted
[bugfix]update unit tests/jacoco to java 17
Signed-off-by: Chris Gibson <[email protected]>
1 parent 5bdee7d commit 5ea883d

File tree

14 files changed

+41
-12
lines changed

14 files changed

+41
-12
lines changed

server/build.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,8 +1144,10 @@
11441144

11451145
<target name="create-derby-db" depends="compile">
11461146
<!-- re-create the embedded database -->
1147-
<delete dir="mirthdb" />
1147+
<delete dir="appdata/mirthdb" />
11481148
<java classname="com.mirth.connect.server.tools.ScriptRunner" fork="true" dir="${basedir}" failonerror="true">
1149+
<!-- Set Derby home so it creates mirthdb inside appdata -->
1150+
<jvmarg value="-Dderby.system.home=appdata" />
11491151
<classpath>
11501152
<pathelement location="${setup.server.lib}/${server.jar}" />
11511153
<pathelement location="classes" />
@@ -1271,9 +1273,15 @@
12711273

12721274
<target name="test-run" depends="test-compile">
12731275
<property name="junit-reports" value="junit-reports" />
1276+
<property name="junit-html" value="junit-html" />
12741277
<property name="code-coverage-reports" value="code-coverage-reports" />
1278+
<delete dir="${junit-reports}" />
1279+
<delete dir="${code-coverage-reports}" />
1280+
<delete dir="${junit-html}" />
1281+
12751282
<mkdir dir="${junit-reports}" />
12761283
<mkdir dir="${code-coverage-reports}" />
1284+
<mkdir dir="${junit-html}" />
12771285

12781286
<jacoco:coverage destfile="${code-coverage-reports}/jacoco.exec" xmlns:jacoco="antlib:org.jacoco.ant" exclclassloader="sun.reflect.DelegatingClassLoader:javassist.Loader" >
12791287
<junit haltonfailure="false" fork="true" forkmode="perTest">
@@ -1314,6 +1322,14 @@
13141322
</batchtest>
13151323
</junit>
13161324
</jacoco:coverage>
1325+
1326+
<!-- Generate HTML report from JUnit XML output -->
1327+
<junitreport todir="${junit-reports}">
1328+
<fileset dir="${junit-reports}">
1329+
<include name="TEST-*.xml"/>
1330+
</fileset>
1331+
<report format="frames" todir="${junit-html}" />
1332+
</junitreport>
13171333
</target>
13181334

13191335
<target name="remove-classes" depends="init">

server/lib/ant/ant-header.jar

-8.32 KB
Binary file not shown.

server/lib/ant/asm-9.2.jar

119 KB
Binary file not shown.

server/lib/ant/asm-commons-9.2.jar

70.9 KB
Binary file not shown.

server/lib/ant/asm-tree-9.2.jar

51.4 KB
Binary file not shown.
261 KB
Binary file not shown.
34.6 KB
Binary file not shown.
198 KB
Binary file not shown.
126 KB
Binary file not shown.

server/src/com/mirth/connect/model/util/DefaultMetaData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public class DefaultMetaData {
2525
public static final MetaDataColumnType TYPE_COLUMN_TYPE = MetaDataColumnType.STRING;
2626
public static final MetaDataColumnType VERSION_COLUMN_TYPE = MetaDataColumnType.STRING;
2727

28-
public static final String SOURCE_VARIABLE_MAPPING = "mirth_source";
29-
public static final String TYPE_VARIABLE_MAPPING = "mirth_type";
28+
public static final String SOURCE_VARIABLE_MAPPING = "message_source";
29+
public static final String TYPE_VARIABLE_MAPPING = "message_type";
3030
public static final String VERSION_VARIABLE_MAPPING = "mirth_version";
3131

3232
public static final MetaDataColumn SOURCE_COLUMN = new MetaDataColumn(SOURCE_COLUMN_NAME, SOURCE_COLUMN_TYPE, SOURCE_VARIABLE_MAPPING);

0 commit comments

Comments
 (0)