METHOD_0 ( ) { int count = 0 ; java . lang . String record = null ; while ( ( record = IDENT_0 . METHOD_1 ( ) ) != null ) { ++ count ; System . out . println ( record ) ; } "<AssertPlaceHolder>" ; } METHOD_1 ( ) { IDENT_1 . delete ( 0 , IDENT_1 . length ( ) ) ; boolean IDENT_2 = false ; int c = 0 ; int IDENT_3 = 1 ; while ( ( c = super . read ( ) ) != ( - 1 ) ) { ++ ( IDENT_4 ) ; if ( ! IDENT_2 ) { IDENT_1 . append ( ( ( char ) ( c ) ) ) ; if ( IDENT_1 . toString ( ) . contains ( IDENT_5 ) ) { METHOD_2 ( ) ; IDENT_2 = true ; IDENT_1 . delete ( 0 , IDENT_1 . length ( ) ) ; IDENT_1 . append ( STRING_0 ) ; } } else { IDENT_1 . append ( ( ( char ) ( c ) ) ) ; if ( c == STRING_0 ) { ++ IDENT_3 ; } else if ( c == STRING_1 ) { OP_0 IDENT_3 ; } if ( IDENT_3 == 0 ) { break ; } } } if ( IDENT_2 ) { return IDENT_1 . toString ( ) ; } else { return null ; } }
org . junit . Assert . assertEquals ( 3 , count )