diff --git a/src/test/java/bytecode/OLFun2Test.java b/src/test/java/bytecode/OLFun2Test.java index 72ccbc4a..c0f9abf3 100644 --- a/src/test/java/bytecode/OLFun2Test.java +++ b/src/test/java/bytecode/OLFun2Test.java @@ -11,7 +11,8 @@ import de.dhbwstuttgart.core.JavaTXCompiler; import static org.junit.Assert.*; /** - * //ToDo Etienne: Beschreiben + * Test for the file {@code OLFun2.jav}. + * Tests if the expected overloading for the method {@code m} exists. * * @since Studienarbeit Type Erasure * @author etiennezink @@ -29,8 +30,6 @@ public class OLFun2Test { private static String generatedByteCodeDirectory = System.getProperty("user.dir") + "/src/test/resources/testBytecode/generatedBC/"; - //ToDo Etienne: Nach Anpassung des Bytecode die Tests hinzufügen - //ToDo Etienne: Aufruf von m testen @BeforeClass public static void setUp() throws Exception { path = System.getProperty("user.dir")+"/src/test/resources/bytecode/javFiles/OLFun2.jav"; @@ -69,7 +68,7 @@ public class OLFun2Test { assertNotNull(m); } - //@AfterClass + @AfterClass public static void cleanUp() { TestCleanUp.cleanUpDirectory(new File(generatedByteCodeDirectory), f -> f.getName().contains(".class")); } diff --git a/src/test/java/bytecode/OLFunTest.java b/src/test/java/bytecode/OLFunTest.java index 9408e5a8..7e280459 100644 --- a/src/test/java/bytecode/OLFunTest.java +++ b/src/test/java/bytecode/OLFunTest.java @@ -11,7 +11,8 @@ import de.dhbwstuttgart.core.JavaTXCompiler; import static org.junit.Assert.*; /** - * //ToDo Etienne: Beschreiben + * Test for the file {@code OLFun.jav}. + * Tests if the expected overloading for the method {@code m} exists. * * @since Studienarbeit Type Erasure * @author etiennezink @@ -31,8 +32,6 @@ public class OLFunTest { private static String generatedByteCodeDirectory = System.getProperty("user.dir") + "/src/test/resources/testBytecode/generatedBC/"; - //ToDo Etienne: Nach Anpassung des Bytecode die Tests hinzufügen - //ToDo Etienne: Aufruf von m testen @BeforeClass public static void setUp() throws Exception { path = System.getProperty("user.dir")+"/src/test/resources/bytecode/javFiles/OLFun.jav"; @@ -85,7 +84,7 @@ public class OLFunTest { assertNotNull(m); } - //@AfterClass + @AfterClass public static void cleanUp(){ TestCleanUp.cleanUpDirectory(new File(generatedByteCodeDirectory), f -> f.getName().contains(".class")); }