KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > kirkk > analyzer > framework > bcel > test > TestClassParsing


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 JavaDoc name) {
12         super(name);
13     }
14
15     public void testGetClassParsing() throws Exception JavaDoc {
16         String JavaDoc file = "testdata/acyclictestproject/dist/Test2.jar";
17         String JavaDoc 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