From daaeb1a54038fce9a3877d77f075b0d2ea18994f Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Tue, 18 Feb 2020 14:32:23 +1100 Subject: [PATCH] fix up test --- .../src/test/java/org/hl7/fhir/r5/test/UtilitiesTests.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/UtilitiesTests.java b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/UtilitiesTests.java index 45e37fa44..3a75280b1 100644 --- a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/UtilitiesTests.java +++ b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/UtilitiesTests.java @@ -1,6 +1,9 @@ package org.hl7.fhir.r5.test; +import java.io.File; import java.io.IOException; +import java.nio.file.Path; + import org.apache.commons.lang3.SystemUtils; import org.hl7.fhir.utilities.Utilities; @@ -20,7 +23,7 @@ public class UtilitiesTests { public void testPath() throws IOException { Assert.assertEquals(Utilities.path("[tmp]", "test.txt"), SystemUtils.IS_OS_WINDOWS ? "c:\\temp\\test.txt" : "/tmp/test.txt"); Assert.assertEquals(Utilities.path("[user]", "test.txt"), System.getProperty("user.home")+"\\test.txt"); - Assert.assertEquals(Utilities.path("[JAVA_HOME]", "test.txt"), System.getenv("JAVA_HOME")+"\\test.txt"); + Assert.assertEquals(Utilities.path("[JAVA_HOME]", "test.txt"), System.getenv("JAVA_HOME")+File.separator+"test.txt"); } @Test