METHOD_0 ( ) { text . METHOD_1 ( STRING_0 ) ; org . eclipse . swt . widgets . IDENT_0 event = new org . eclipse . swt . widgets . METHOD_2 ( ) ; event . IDENT_1 = 1 ; event . count = 1 ; event . x = 0 ; event . y = text . METHOD_3 ( 1 ) ; text . METHOD_4 ( IDENT_2 . IDENT_3 , event ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( ) { org . eclipse . swt . IDENT_4 . IDENT_5 event = new org . eclipse . swt . IDENT_4 . METHOD_6 ( this ) ; event . offset = - 1 ; for ( int i = 0 ; i < ( METHOD_7 ( ) ) ; i ++ ) { org . eclipse . swt . IDENT_4 . IDENT_6 listener = IDENT_7 . get ( i ) ; listener . METHOD_5 ( event ) ; } if ( ( event . offset ) == ( - 1 ) ) { for ( int i = 0 ; i < ( METHOD_8 ( ) ) ; i ++ ) { event . IDENT_8 = IDENT_9 . IDENT_10 ; org . eclipse . swt . IDENT_4 . IDENT_6 listener = IDENT_11 . get ( i ) ; listener . METHOD_5 ( event ) ; } } return event . offset ; }
org . junit . Assert . assertEquals ( 2 , text . METHOD_5 ( ) )