forked from JavaTX/JavaCompilerCore
Test für System.out.println erstellt. Umsetzung vorerst nicht möglich, da ein Fehler der Typeinferenz auftritt
This commit is contained in:
parent
7b78cf8471
commit
943c4e6043
5
test/bytecode/SystemOutPrintln.jav
Normal file
5
test/bytecode/SystemOutPrintln.jav
Normal file
@ -0,0 +1,5 @@
|
||||
class SystemOutPrintln{
|
||||
void method() {
|
||||
System.out.println("Hello World");
|
||||
}
|
||||
}
|
34
test/bytecode/SystemOutPrintlnTest.java
Normal file
34
test/bytecode/SystemOutPrintlnTest.java
Normal file
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user