Kommentieren von OLFunTest und OLFun2Test.
This commit is contained in:
parent
e80e2db26c
commit
24f1b507c4
@ -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"));
|
||||||
}
|
}
|
||||||
|
@ -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"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user