From 943c4e60433a14214ecd9437c697729bd3f01f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Schr=C3=B6dter?= Date: Thu, 7 Apr 2016 13:54:29 +0200 Subject: [PATCH] =?UTF-8?q?Test=20f=C3=BCr=20System.out.println=20erstellt?= =?UTF-8?q?.=20Umsetzung=20vorerst=20nicht=20m=C3=B6glich,=20da=20ein=20Fe?= =?UTF-8?q?hler=20der=20Typeinferenz=20auftritt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/bytecode/SystemOutPrintln.jav | 5 ++++ test/bytecode/SystemOutPrintlnTest.java | 34 +++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 test/bytecode/SystemOutPrintln.jav create mode 100644 test/bytecode/SystemOutPrintlnTest.java diff --git a/test/bytecode/SystemOutPrintln.jav b/test/bytecode/SystemOutPrintln.jav new file mode 100644 index 00000000..37c8078f --- /dev/null +++ b/test/bytecode/SystemOutPrintln.jav @@ -0,0 +1,5 @@ +class SystemOutPrintln{ + void method() { + System.out.println("Hello World"); + } +} \ No newline at end of file diff --git a/test/bytecode/SystemOutPrintlnTest.java b/test/bytecode/SystemOutPrintlnTest.java new file mode 100644 index 00000000..b42a21c1 --- /dev/null +++ b/test/bytecode/SystemOutPrintlnTest.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 SystemOutPrintlnTest { + + public final static String rootDirectory = System.getProperty("user.dir")+"/test/bytecode/"; + public final static String testFile = "SystemOutPrintln.jav"; + public final static String outputFile = "SystemOutPrintln.class"; + + @Test + public void test() { + SingleClassTester.compileToBytecode(rootDirectory+testFile, rootDirectory+outputFile); + } + +}