Fix generated temp file that breaks git pulls for windows (#788)

Co-authored-by: dotasek <david.otasek@smilecdr.com>
This commit is contained in:
dotasek 2022-04-14 12:52:59 -04:00 committed by GitHub
parent a7354f999e
commit 4d9bb2c76a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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);