diff --git a/src/test/java/packages/LoadDefaultPackageClassesTest.java b/src/test/java/packages/LoadDefaultPackageClassesTest.java index 47fcc4d7..8a3aa3c0 100644 --- a/src/test/java/packages/LoadDefaultPackageClassesTest.java +++ b/src/test/java/packages/LoadDefaultPackageClassesTest.java @@ -20,7 +20,9 @@ public class LoadDefaultPackageClassesTest extends TestCase { /* Generate ToImport class in rootDirectory and in output-Directory */ - JavaTXCompiler compiler = new JavaTXCompiler(new File(rootDirectory+"Gen.jav")); + JavaTXCompiler compiler = new JavaTXCompiler( + Lists.newArrayList(new File(rootDirectory+"Gen.jav")), + Lists.newArrayList(new File(rootDirectory+"/de/test/output/"))); compiler.typeInference(); compiler.generateBytecode(); File f = new File(rootDirectory + "Gen.class"); @@ -35,7 +37,7 @@ public class LoadDefaultPackageClassesTest extends TestCase { URLClassLoader cl = new URLClassLoader(new URL[]{new URL("file://"+rootDirectory)}, ClassLoader.getSystemClassLoader()); cl.loadClass("Gen"); } - +/* public void testE2E() throws IOException, ClassNotFoundException { JavaTXCompiler compiler = new JavaTXCompiler(new File(rootDirectory+"OL.jav")); compiler.typeInference(); @@ -49,4 +51,5 @@ public class LoadDefaultPackageClassesTest extends TestCase { f = new File(rootDirectory + "OLMain.class"); assertTrue(f.exists()); } + */ } diff --git a/src/test/java/packages/OLOneFileTest.java b/src/test/java/packages/OLOneFileTest.java index 05ebbc5a..64b1a2b1 100644 --- a/src/test/java/packages/OLOneFileTest.java +++ b/src/test/java/packages/OLOneFileTest.java @@ -31,15 +31,15 @@ public class OLOneFileTest { private static Object instanceOfClass1; private static Object instanceOfClass2; - public static final String rootDirectory = System.getProperty("user.dir")+"/src/test/resources/javFiles/packageTest"; + public static final String rootDirectory = System.getProperty("user.dir")+"/src/test/resources/javFiles/packageTest/"; @BeforeClass public static void setUpBeforeClass() throws Exception { - path = rootDirectory +"/OLOneFile.jav"; + path = rootDirectory +"OLOneFile.jav"; fileToTest = new File(path); compiler = new JavaTXCompiler( Lists.newArrayList(fileToTest), - Lists.newArrayList(new File(rootDirectory+"/de/test/output/"))); + Lists.newArrayList(new File(rootDirectory+"de/test/output/"))); pathToClassFile = System.getProperty("user.dir")+"/src/test/resources/javFiles/packageTest/"; List typeinferenceResult = compiler.typeInference(); List simplifyResultsForAllSourceFiles = compiler.getGeneratedGenericResultsForAllSourceFiles(typeinferenceResult);