METHOD_0 ( ) { try { search = new org . IDENT_0 . simple . common . IDENT_1 . METHOD_1 ( STRING_0 , doc ) ; int i = 0 ; while ( search . hasNext ( ) ) { org . IDENT_0 . simple . common . IDENT_1 . IDENT_2 item = ( ( org . IDENT_0 . simple . common . IDENT_1 . IDENT_2 ) ( search . METHOD_2 ( ) ) ) ; org . IDENT_0 . simple . common . IDENT_1 . IDENT_3 IDENT_4 = new org . IDENT_0 . simple . common . IDENT_1 . METHOD_3 ( item ) ; IDENT_4 . METHOD_4 ( STRING_1 ) ; i ++ ; } doc . save ( org . IDENT_0 . simple . utils . IDENT_5 . METHOD_5 ( org . IDENT_0 . simple . common . IDENT_1 . IDENT_6 . IDENT_7 ) ) ; org . IDENT_0 . simple . IDENT_8 IDENT_9 = ( ( org . IDENT_0 . simple . IDENT_8 ) ( org . IDENT_0 . simple . Document . METHOD_6 ( org . IDENT_0 . simple . utils . IDENT_5 . getAbsolutePath ( org . IDENT_0 . simple . common . IDENT_1 . IDENT_6 . IDENT_7 ) ) ) ) ; search = new org . IDENT_0 . simple . common . IDENT_1 . METHOD_1 ( STRING_0 , IDENT_9 ) ; if ( search . hasNext ( ) ) { org . junit . Assert . fail ( ) ; } search = new org . IDENT_0 . simple . common . IDENT_1 . METHOD_1 ( STRING_1 , IDENT_9 ) ; int j = 0 ; while ( search . hasNext ( ) ) { org . IDENT_0 . simple . common . IDENT_1 . IDENT_2 item = ( ( org . IDENT_0 . simple . common . IDENT_1 . IDENT_2 ) ( search . METHOD_2 ( ) ) ) ; item . METHOD_4 ( STRING_2 ) ; j ++ ; } "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { java . util . logging . IDENT_10 . METHOD_7 ( org . IDENT_0 . simple . common . IDENT_1 . IDENT_6 . class . getName ( ) ) . log ( IDENT_11 . IDENT_12 , e . getMessage ( ) , e ) ; org . junit . Assert . fail ( ( ( ( ( STRING_3 + ( e . getClass ( ) . getName ( ) ) ) + STRING_4 ) + ( e . getMessage ( ) ) ) + STRING_5 ) ) ; } } METHOD_4 ( java . lang . String ) { if ( ( validate ( ) ) == false ) { throw new org . IDENT_0 . IDENT_13 . IDENT_14 . search . METHOD_8 ( STRING_6 ) ; } org . IDENT_0 . IDENT_13 . IDENT_15 . IDENT_16 IDENT_17 = METHOD_9 ( ) ; int IDENT_18 = getText ( ) . length ( ) ; int index = IDENT_19 ; delete ( index , IDENT_18 , IDENT_17 ) ; org . IDENT_0 . IDENT_13 . IDENT_14 . doc . text . IDENT_20 IDENT_21 = new org . IDENT_0 . IDENT_13 . IDENT_14 . doc . text . METHOD_10 ( ( ( org . IDENT_0 . IDENT_13 . IDENT_15 . IDENT_22 ) ( IDENT_17 . METHOD_11 ( ) ) ) ) ; IDENT_21 . METHOD_12 ( IDENT_23 ) ; IDENT_24 = false ; METHOD_13 ( IDENT_21 , index , IDENT_17 ) ; METHOD_14 ( IDENT_17 ) ; int offset = ( IDENT_23 . length ( ) ) - IDENT_18 ; org . IDENT_0 . IDENT_13 . IDENT_14 . search . IDENT_25 . METHOD_15 ( this . METHOD_9 ( ) , offset , ( index + ( getText ( ) . length ( ) ) ) ) ; IDENT_26 = IDENT_23 ; }
org . junit . Assert . assertEquals ( i , j )