METHOD_0 ( ) { final java . util . List < java . lang . String > log = new java . util . ArrayList < java . lang . String > ( ) ; org . eclipse . IDENT_0 . widgets . grid . IDENT_1 . METHOD_1 ( grid , 5 , 0 ) ; for ( org . eclipse . IDENT_0 . widgets . grid . IDENT_2 item : grid . METHOD_2 ( ) ) { item . METHOD_3 ( new org . eclipse . swt . events . METHOD_4 ( ) { @ org . eclipse . IDENT_0 . widgets . grid . Override public void METHOD_5 ( org . eclipse . swt . events . IDENT_3 event ) { org . eclipse . IDENT_0 . widgets . grid . IDENT_2 item = ( ( org . eclipse . IDENT_0 . widgets . grid . IDENT_2 ) ( event . METHOD_6 ( ) ) ) ; log . add ( item . getText ( ) ) ; } } ) ; } grid . METHOD_7 ( ) ; java . lang . String [ ] expected = new java . lang . String [ ] { STRING_0 , STRING_1 , STRING_2 , STRING_3 , STRING_4 } ; "<AssertPlaceHolder>" ; } toArray ( java . lang . Object [ ] ) { int size = IDENT_4 . size ( ) ; org . eclipse . IDENT_5 . internal . IDENT_6 . IDENT_7 . IDENT_8 [ ] IDENT_9 = ( ( org . eclipse . IDENT_5 . internal . IDENT_6 . IDENT_7 . IDENT_8 [ ] ) ( IDENT_4 . toArray ( new org . eclipse . IDENT_5 . internal . IDENT_6 . IDENT_7 . IDENT_8 [ size ] ) ) ) ; java . lang . Object [ ] result = a ; if ( ( a . length ) < size ) { result = ( ( java . lang . Object [ ] ) ( java . lang . reflect . IDENT_10 . newInstance ( a . getClass ( ) . METHOD_8 ( ) , size ) ) ) ; } for ( int i = 0 ; i < size ; i ++ ) result [ i ] = IDENT_9 [ i ] . METHOD_9 ( ) ; return result ; }
org . junit . Assert . assertArrayEquals ( expected , log . toArray ( new java . lang . String [ 0 ] ) )