@@ -105,7 +105,7 @@ public void testMethodDefine() {
105
105
106
106
@ Test
107
107
public void testFieldDefine () {
108
- FieldDefinitionAST def = single ("FIELD public static Ljava/util/List; myList" );
108
+ FieldDefinitionAST def = single ("DEFINE public static Ljava/util/List; myList" );
109
109
assertEquals ("myList" , def .getName ().getName ());
110
110
assertEquals (2 , def .getModifiers ().size ());
111
111
assertEquals ("public" , def .getModifiers ().get (0 ).getName ());
@@ -122,15 +122,15 @@ public void testMethodDefineNoModifiers() {
122
122
123
123
@ Test
124
124
public void testFieldDefineNoModifiers () {
125
- FieldDefinitionAST def = single ("FIELD Ljava/util/List; myList" );
125
+ FieldDefinitionAST def = single ("DEFINE Ljava/util/List; myList" );
126
126
assertEquals ("myList" , def .getName ().getName ());
127
127
assertEquals ("Ljava/util/List;" , def .getType ().getDesc ());
128
128
assertEquals (0 , def .getModifiers ().size ());
129
129
}
130
130
131
131
@ Test
132
132
public void testFieldDefinePrimitive () {
133
- FieldDefinitionAST def = single ("FIELD J myLong" );
133
+ FieldDefinitionAST def = single ("DEFINE J myLong" );
134
134
assertEquals ("myLong" , def .getName ().getName ());
135
135
assertEquals ("J" , def .getType ().getDesc ());
136
136
assertEquals (0 , def .getModifiers ().size ());
0 commit comments