30 lines
624 B
Java
Executable File
30 lines
624 B
Java
Executable File
package mycompiler.test.lambda;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import mycompiler.mytest.LambdaTest;
|
|
|
|
import org.junit.Test;
|
|
|
|
public class TestThis {
|
|
private static final String exampleJavFile = "ThisTest.jav";
|
|
private static final String classname = "ThisTest";
|
|
private HashMap<String,String> variableTypeAssumptions = new HashMap<String,String>();
|
|
|
|
|
|
@Test
|
|
public void test() {
|
|
variableTypeAssumptions.put("thisVar", "ThisTest");
|
|
executeTest();
|
|
}
|
|
|
|
|
|
|
|
public void executeTest(){
|
|
LambdaTest tester = new LambdaTest(exampleJavFile);
|
|
tester.runTestAndCheckResultSet(classname, variableTypeAssumptions);
|
|
|
|
}
|
|
|
|
}
|