1 package com.kirkk.analyzer.framework.bcel.test; 2 3 import com.kirkk.analyzer.framework.jar.*; 4 import junit.framework.*; 5 import org.apache.bcel.classfile.*; 6 import com.kirkk.analyzer.framework.bcel.*; 7 import com.kirkk.analyzer.framework.bcelbundle.*; 8 9 public class TestClassParsing extends TestCase { 10 11 public TestClassParsing (String name) { 12 super(name); 13 } 14 15 public void testGetClassParsing() throws Exception { 16 String file = "testdata/acyclictestproject/dist/Test2.jar"; 17 String className = "com/kirkk/analyzer/jar2/test3/Test3.class"; 18 JavaClass javaClass = BCELClassFactory.getClass(file, className); 19 assertTrue(javaClass.getClassName().equals("com.kirkk.analyzer.jar2.test3.Test3")); 20 } 21 22 23 } | Popular Tags |