From 2d598d28e9bb4b84b2f14f138b223d9fe732e94b Mon Sep 17 00:00:00 2001 From: Aldaron7 Date: Wed, 18 Oct 2017 17:39:16 +0200 Subject: [PATCH] =?UTF-8?q?Erste=20Tests=20f=C3=BCr=20strucTypes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/strucType/Test.java | 20 ++++++++++++++++++++ test/strucType/javFiles/test.jav | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 test/strucType/Test.java create mode 100644 test/strucType/javFiles/test.jav diff --git a/test/strucType/Test.java b/test/strucType/Test.java new file mode 100644 index 00000000..fc856247 --- /dev/null +++ b/test/strucType/Test.java @@ -0,0 +1,20 @@ +package strucType; + +import static org.junit.Assert.*; + +import java.io.File; +import java.io.IOException; + +import de.dhbwstuttgart.core.JavaTXCompiler; + +public class Test { + public static final String rootDirectory = System.getProperty("user.dir")+"/test/strucType/javFiles/"; + + + @org.junit.Test + public void test() throws ClassNotFoundException, IOException { + JavaTXCompiler compiler = new JavaTXCompiler(new File(rootDirectory + "test.jav")); + System.out.println("test ende"); + } + +} diff --git a/test/strucType/javFiles/test.jav b/test/strucType/javFiles/test.jav new file mode 100644 index 00000000..c3e6bede --- /dev/null +++ b/test/strucType/javFiles/test.jav @@ -0,0 +1,4 @@ +class C1 extends Object +{ + m(para) { return para; } +} \ No newline at end of file