You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2020/04/06 11:36:52 UTC
[plc4x] 01/04: - Made the DFDLUtilTest work on Windows machines
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit 2ab41e27b1dcb4dc46a8c614e974a5b9353fd4ea
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Mon Apr 6 10:45:34 2020 +0200
- Made the DFDLUtilTest work on Windows machines
---
.../src/test/java/org/apache/plc4x/codegen/DFDLUtilTest.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/sandbox/code-gen/src/test/java/org/apache/plc4x/codegen/DFDLUtilTest.java b/sandbox/code-gen/src/test/java/org/apache/plc4x/codegen/DFDLUtilTest.java
index 066765a..42507b8 100644
--- a/sandbox/code-gen/src/test/java/org/apache/plc4x/codegen/DFDLUtilTest.java
+++ b/sandbox/code-gen/src/test/java/org/apache/plc4x/codegen/DFDLUtilTest.java
@@ -21,13 +21,17 @@ package org.apache.plc4x.codegen;
import org.junit.jupiter.api.Test;
import java.io.File;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
public class DFDLUtilTest {
@Test
- public void loadDFDL() {
+ public void loadDFDL() throws IOException {
final File schema = new File("src/test/resources/protocol.dfdl.xsd");
- final File outDir = new File("/tmp/");
+ Path tempDirWithPrefix = Files.createTempDirectory("plc4x-code-gen");
+ final File outDir = tempDirWithPrefix.toFile();
System.out.println(schema.getAbsolutePath());