METHOD_0 ( ) { logger . info ( STRING_0 ) ; java . lang . String string = STRING_1 ; java . lang . String substring = "test" ; int expResult = 2 ; int result = com . IDENT_0 . framework . core . common . IDENT_1 . IDENT_2 . METHOD_1 ( string , substring ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String , java . lang . String ) { if ( ( substring . length ( ) ) == 1 ) { return com . IDENT_0 . framework . core . common . IDENT_1 . IDENT_2 . METHOD_1 ( string , substring . charAt ( 0 ) ) ; } int count = 0 ; int IDENT_3 = 0 ; while ( ( IDENT_3 = string . indexOf ( substring , IDENT_3 ) ) != ( - 1 ) ) { ++ IDENT_3 ; ++ count ; } return count ; }
org . junit . Assert . assertEquals ( expResult , result )