package bytecode; import java.util.Vector; import junit.framework.TestCase; import mycompiler.MyCompiler; import mycompiler.MyCompilerAPI; import mycompiler.myexception.JVMCodeException; import mycompiler.mytypereconstruction.TypeinferenceResultSet; import org.junit.Test; public class EmptyClassTest extends TestCase { @Test public void test(){ MyCompilerAPI compiler = MyCompiler.getAPI(); compiler.parse("class EmptyClass{}"); try { compiler.codeGeneration(null); } catch (NullPointerException | JVMCodeException e) { // TODO Auto-generated catch block e.printStackTrace(); } assertTrue("Test erfolgreich",true); } }