* @version $Revision: 21496 $
*/
public class PropertyTest extends TestSupport {
public void testFields() throws Exception {
ClassNode classNode = new ClassNode("Foo", ACC_PUBLIC, ClassHelper.OBJECT_TYPE);
classNode.addField("x", ACC_PUBLIC, ClassHelper.OBJECT_TYPE, null);
classNode.addField("y", ACC_PUBLIC, ClassHelper.Integer_TYPE, null);
classNode.addField("z", ACC_PRIVATE, ClassHelper.STRING_TYPE, null);
Class fooClass = loadClass(classNode);
assertTrue("Loaded a new class", fooClass != null);
assertField(fooClass, "x", Modifier.PUBLIC, ClassHelper.OBJECT_TYPE);