forked from JavaTX/JavaCompilerCore
cbe77d3722
In Zeile 833 catch Exception durch catch Throwable ersetzt, da der UnsupportedClassVersionError geworfen wurde modified: src/test/java/bytecode/FacTest.java modified: src/test/java/bytecode/FacultyTest.java modified: src/test/java/bytecode/FieldTest.java modified: src/test/java/bytecode/FieldTph.java modified: src/test/java/bytecode/FieldTph2Test.java modified: src/test/java/bytecode/FunOLTest.java modified: src/test/java/bytecode/GenTest.java modified: src/test/java/bytecode/GreaterEqualTest.java modified: src/test/java/bytecode/GreaterThanTest.java modified: src/test/java/bytecode/LambdaCapturetest.java modified: src/test/java/bytecode/LambdaTest.java modified: src/test/java/bytecode/LambdaVoidTest.java modified: src/test/java/bytecode/LessEqualTest.java modified: src/test/java/bytecode/LessThanTest.java modified: src/test/java/bytecode/MatrixOpTest.java modified: src/test/java/bytecode/MergeTest.java modified: src/test/java/bytecode/OLTest.java modified: src/test/java/bytecode/OpTest.java modified: src/test/java/bytecode/OverloadingSortingTest.java modified: src/test/java/bytecode/OverloadingTest.java modified: src/test/java/bytecode/PlusTest.java modified: src/test/java/bytecode/PostIncTest.java modified: src/test/java/bytecode/PreIncTest.java modified: src/test/java/bytecode/RelOpsTest.java modified: src/test/java/bytecode/SortingTest.java modified: src/test/java/bytecode/SubMatTest.java modified: src/test/java/bytecode/Tph2Test.java modified: src/test/java/bytecode/Tph3Test.java modified: src/test/java/bytecode/Tph5Test.java modified: src/test/java/bytecode/TphTest.java modified: src/test/java/bytecode/WhileTest.java modified: src/test/java/bytecode/YTest.java Pfade angepasst
28 lines
740 B
Java
28 lines
740 B
Java
package bytecode;
|
|
|
|
import static org.junit.Assert.*;
|
|
|
|
import java.io.File;
|
|
import java.io.IOException;
|
|
|
|
import org.junit.Test;
|
|
|
|
import de.dhbwstuttgart.core.JavaTXCompiler;
|
|
|
|
public class SubMatTest {
|
|
private static String path;
|
|
private static File fileToTest;
|
|
private static JavaTXCompiler compiler;
|
|
private static String pathToClassFile;
|
|
|
|
@Test
|
|
public void test() throws ClassNotFoundException, IOException {
|
|
path = System.getProperty("user.dir")+"/src/test/resources/bytecode/javFiles/SubMatrix.jav";
|
|
fileToTest = new File(path);
|
|
compiler = new JavaTXCompiler(fileToTest);
|
|
pathToClassFile = System.getProperty("user.dir")+"/src/test/resources/testBytecode/generatedBC/";
|
|
compiler.generateBytecode(pathToClassFile);
|
|
}
|
|
|
|
}
|