CPString cp3 = new CPString(new CPUTF8(new String("5"), 5), 5);
checkEquality(cp1, cp2, "3", cp3); //$NON-NLS-1$
}
public void testCPField() {
CPMember cp1 = new CPMember(new CPUTF8("Name", 3), new CPUTF8("I", 4),
0, null);
CPMember cp2 = new CPMember(new CPUTF8("Name", 3), new CPUTF8("I", 4),
0, null);
CPMember cp3 = new CPMember(new CPUTF8("Name", 3), new CPUTF8("Z", 5),
0, null);
CPMember cp4 = new CPMember(new CPUTF8("GName", 6), new CPUTF8("I", 4),
0, null);
checkEquality(cp1, cp2, "Name", cp3); //$NON-NLS-1$
checkEquality(cp1, cp2, "I", cp4); //$NON-NLS-1$
}