2015-05-27 10:53:47 +00:00
|
|
|
package bytecode;
|
|
|
|
|
|
|
|
import static org.junit.Assert.*;
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
import junit.framework.TestCase;
|
|
|
|
|
|
|
|
import org.junit.Test;
|
|
|
|
|
|
|
|
import plugindevelopment.TypeInsertTester;
|
|
|
|
import de.dhbwstuttgart.core.MyCompiler;
|
|
|
|
import de.dhbwstuttgart.core.MyCompilerAPI;
|
|
|
|
import de.dhbwstuttgart.logger.LoggerConfiguration;
|
2015-05-27 13:57:15 +00:00
|
|
|
import de.dhbwstuttgart.logger.Section;
|
2015-05-27 10:53:47 +00:00
|
|
|
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;
|
|
|
|
|
2015-06-17 10:03:54 +00:00
|
|
|
public class EmptyClassTest {
|
2015-05-27 10:53:47 +00:00
|
|
|
|
|
|
|
public final static String rootDirectory = System.getProperty("user.dir")+"/test/bytecode/";
|
|
|
|
public final static String testFile = "EmptyClass.jav";
|
2015-06-17 10:03:54 +00:00
|
|
|
public final static String outputFile = "EmptyClass.class";
|
2015-05-27 13:57:15 +00:00
|
|
|
|
2015-05-27 10:53:47 +00:00
|
|
|
@Test
|
|
|
|
public void test() {
|
2015-08-27 11:36:14 +00:00
|
|
|
SingleClassTester.compileToBytecode(rootDirectory+testFile, rootDirectory+outputFile);
|
2015-05-27 10:53:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|