27 lines
551 B
Java
27 lines
551 B
Java
package bytecode;
|
|
|
|
import static org.junit.Assert.*;
|
|
|
|
import org.junit.Test;
|
|
|
|
import bytecode.SourceFileBytecodeTest;
|
|
|
|
|
|
public class MethodsAndVariableTest extends SourceFileBytecodeTest{
|
|
@Override
|
|
protected void init() {
|
|
testName = "MethodAndVariable";
|
|
rootDirectory = System.getProperty("user.dir")+"/test/bytecode/";
|
|
}
|
|
|
|
@Test
|
|
public void testConstruct() throws Exception{
|
|
ClassLoader classLoader = getClassLoader();
|
|
|
|
Class cls = classLoader.loadClass(testName);
|
|
|
|
Object obj = cls.newInstance();
|
|
assertTrue(true);
|
|
}
|
|
}
|