Kommentieren von OLFunTest und OLFun2Test.

This commit is contained in:
Etienne Zink 2022-03-30 20:32:34 +02:00
parent e80e2db26c
commit 24f1b507c4
2 changed files with 6 additions and 8 deletions

View File

@ -11,7 +11,8 @@ import de.dhbwstuttgart.core.JavaTXCompiler;
import static org.junit.Assert.*; 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 * @since Studienarbeit Type Erasure
* @author etiennezink * @author etiennezink
@ -29,8 +30,6 @@ public class OLFun2Test {
private static String generatedByteCodeDirectory = System.getProperty("user.dir") + "/src/test/resources/testBytecode/generatedBC/"; 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 @BeforeClass
public static void setUp() throws Exception { public static void setUp() throws Exception {
path = System.getProperty("user.dir")+"/src/test/resources/bytecode/javFiles/OLFun2.jav"; path = System.getProperty("user.dir")+"/src/test/resources/bytecode/javFiles/OLFun2.jav";
@ -69,7 +68,7 @@ public class OLFun2Test {
assertNotNull(m); assertNotNull(m);
} }
//@AfterClass @AfterClass
public static void cleanUp() { public static void cleanUp() {
TestCleanUp.cleanUpDirectory(new File(generatedByteCodeDirectory), f -> f.getName().contains(".class")); TestCleanUp.cleanUpDirectory(new File(generatedByteCodeDirectory), f -> f.getName().contains(".class"));
} }

View File

@ -11,7 +11,8 @@ import de.dhbwstuttgart.core.JavaTXCompiler;
import static org.junit.Assert.*; 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 * @since Studienarbeit Type Erasure
* @author etiennezink * @author etiennezink
@ -31,8 +32,6 @@ public class OLFunTest {
private static String generatedByteCodeDirectory = System.getProperty("user.dir") + "/src/test/resources/testBytecode/generatedBC/"; 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 @BeforeClass
public static void setUp() throws Exception { public static void setUp() throws Exception {
path = System.getProperty("user.dir")+"/src/test/resources/bytecode/javFiles/OLFun.jav"; path = System.getProperty("user.dir")+"/src/test/resources/bytecode/javFiles/OLFun.jav";
@ -85,7 +84,7 @@ public class OLFunTest {
assertNotNull(m); assertNotNull(m);
} }
//@AfterClass @AfterClass
public static void cleanUp(){ public static void cleanUp(){
TestCleanUp.cleanUpDirectory(new File(generatedByteCodeDirectory), f -> f.getName().contains(".class")); TestCleanUp.cleanUpDirectory(new File(generatedByteCodeDirectory), f -> f.getName().contains(".class"));
} }