JavaPatternMatching/test/bytecode/RunnableTest.java

21 lines
454 B
Java

package bytecode;
import org.junit.Test;
public class RunnableTest extends SourceFileBytecodeTest{
@Override
protected void init() {
testName = "Runnable";
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);
}
}