From 4d9bb2c76a1a343d1b9e190916f3bdeed876fcf2 Mon Sep 17 00:00:00 2001 From: dotasek Date: Thu, 14 Apr 2022 12:52:59 -0400 Subject: [PATCH] Fix generated temp file that breaks git pulls for windows (#788) Co-authored-by: dotasek --- .../src/test/java/org/hl7/fhir/r4b/test/ParsingTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.r4b/src/test/java/org/hl7/fhir/r4b/test/ParsingTests.java b/org.hl7.fhir.r4b/src/test/java/org/hl7/fhir/r4b/test/ParsingTests.java index f592ea1a8..e45f5b58f 100644 --- a/org.hl7.fhir.r4b/src/test/java/org/hl7/fhir/r4b/test/ParsingTests.java +++ b/org.hl7.fhir.r4b/src/test/java/org/hl7/fhir/r4b/test/ParsingTests.java @@ -1,6 +1,7 @@ package org.hl7.fhir.r4b.test; import java.io.IOException; +import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; import java.util.stream.Stream; @@ -54,7 +55,7 @@ public class ParsingTests { String src = new String(b); Resource r = new JsonParser().parse(b); b = new XmlParser().composeBytes(r); - TextFile.bytesToFile(b, "c:\\temp\\test.xml"); + TextFile.bytesToFile(b, Paths.get(System.getProperty("java.io.tmpdir"),"test.xml").toAbsolutePath().toString()); r = new XmlParser().parse(b); b = new JsonParser().setOutputStyle(OutputStyle.PRETTY).composeBytes(r); String output = new String(b);