import org.apache.harmony.unpack200.IcTuple;
public class ICTupleTest extends TestCase {
public void testPredictedClassTupleParsing() {
IcTuple tuple = new IcTuple(
"orw/SimpleHelloWorld$SimpleHelloWorldInner", 0, null, null,
-1, -1, -1);
assertEquals("SimpleHelloWorldInner", tuple.simpleClassName());
assertEquals("orw/SimpleHelloWorld", tuple.outerClassString());
tuple = new IcTuple("java/util/AbstractList$2$Local", 0, null, null,
-1, -1, -1);
assertEquals("Local", tuple.simpleClassName());
assertEquals("java/util/AbstractList$2", tuple.outerClassString());
tuple = new IcTuple("java/util/AbstractList#2#Local", 0, null, null,
-1, -1, -1);
assertEquals("Local", tuple.simpleClassName());
assertEquals("java/util/AbstractList$2", tuple.outerClassString());
tuple = new IcTuple("java/util/AbstractList$1", 0, null, null, -1, -1,
-1);
assertEquals("1", tuple.simpleClassName());
assertEquals("java/util/AbstractList", tuple.outerClassString());
}