From 347b06ac68033ba44ffb22659c652f0cf9521b1e Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Thu, 22 Oct 2015 16:46:24 +0200 Subject: [PATCH] =?UTF-8?q?Main=20Test=20anf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/bytecode/Main.jav | 6 ++++++ test/bytecode/MainTest.java | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 test/bytecode/Main.jav create mode 100644 test/bytecode/MainTest.java diff --git a/test/bytecode/Main.jav b/test/bytecode/Main.jav new file mode 100644 index 00000000..479d42e8 --- /dev/null +++ b/test/bytecode/Main.jav @@ -0,0 +1,6 @@ +class Assign{ + +public static void main(String[] args){ +} + +} \ No newline at end of file diff --git a/test/bytecode/MainTest.java b/test/bytecode/MainTest.java new file mode 100644 index 00000000..5a81f8d6 --- /dev/null +++ b/test/bytecode/MainTest.java @@ -0,0 +1,34 @@ +package bytecode; + +import static org.junit.Assert.*; + +import java.io.File; +import java.io.IOException; + +import junit.framework.TestCase; + +import org.junit.Test; + +import plugindevelopment.TypeInsertTester; +import de.dhbwstuttgart.core.MyCompiler; +import de.dhbwstuttgart.core.MyCompilerAPI; +import de.dhbwstuttgart.logger.LoggerConfiguration; +import de.dhbwstuttgart.logger.Section; +import de.dhbwstuttgart.parser.JavaParser.yyException; +import de.dhbwstuttgart.typeinference.ByteCodeResult; +import de.dhbwstuttgart.typeinference.Menge; +import de.dhbwstuttgart.typeinference.TypeinferenceResultSet; +import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertSet; + +public class MainTest { + + public final static String rootDirectory = System.getProperty("user.dir")+"/test/bytecode/"; + public final static String testFile = "Main.jav"; + public final static String outputFile = "Main.class"; + + @Test + public void test() { + SingleClassTester.compileToBytecode(rootDirectory+testFile, rootDirectory+outputFile); + } + +}