forked from JavaTX/JavaCompilerCore
44 lines
1.2 KiB
Java
44 lines
1.2 KiB
Java
package bytecode.main;
|
|
|
|
import static org.junit.Assert.*;
|
|
|
|
import java.io.File;
|
|
import java.io.IOException;
|
|
|
|
import junit.framework.TestCase;
|
|
|
|
import org.junit.Test;
|
|
|
|
import bytecode.SourceFileBytecodeTest;
|
|
import plugindevelopment.TypeInsertTester;
|
|
import de.dhbwstuttgart.core.MyCompiler;
|
|
import de.dhbwstuttgart.core.MyCompilerAPI;
|
|
import de.dhbwstuttgart.logger.LoggerConfiguration;
|
|
import de.dhbwstuttgart.logger.Section;
|
|
import de.dhbwstuttgart.parser.JavaParser.yyException;
|
|
import de.dhbwstuttgart.typeinference.ByteCodeResult;
|
|
import de.dhbwstuttgart.typeinference.Menge;
|
|
import de.dhbwstuttgart.typeinference.TypeinferenceResultSet;
|
|
import de.dhbwstuttgart.typeinference.typedeployment.TypeInsertSet;
|
|
|
|
public class LambdaExprTest extends SourceFileBytecodeTest{
|
|
@Override
|
|
protected void init() {
|
|
testName = "Id";
|
|
rootDirectory = System.getProperty("user.dir")+"/test/bytecode/main/";
|
|
}
|
|
|
|
@Test
|
|
public void testConstruct() throws Exception{
|
|
ClassLoader classLoader = getClassLoader();
|
|
|
|
Class cls = classLoader.loadClass(testName);
|
|
|
|
//Invoke main method:
|
|
cls.getMethod("main", String[].class).invoke(this, new String[0]);
|
|
|
|
//Object obj = cls.newInstance();
|
|
|
|
assertTrue(true);
|
|
}
|
|
} |