METHOD_0 ( ) { java . sql . ResultSet IDENT_0 = mock ( java . sql . ResultSet . class ) ; when ( IDENT_0 . next ( ) ) . thenReturn ( true ) . thenReturn ( true ) . thenReturn ( false ) ; when ( IDENT_0 . getString ( STRING_0 ) ) . thenReturn ( STRING_1 ) . thenReturn ( STRING_2 ) ; org . IDENT_1 . text . IDENT_2 . IDENT_3 iterator = new org . IDENT_1 . text . IDENT_2 . METHOD_1 ( IDENT_0 , STRING_0 ) ; int IDENT_4 = 0 ; while ( iterator . hasNext ( ) ) { java . lang . String line = iterator . METHOD_2 ( ) ; IDENT_4 ++ ; } "<AssertPlaceHolder>" ; } METHOD_2 ( ) { return iterator . METHOD_2 ( ) ; }
org . junit . Assert . assertEquals ( 3 , IDENT_4 )