METHOD_0 ( ) { int matches = com . baeldung . java . regex . IDENT_0 . METHOD_1 ( STRING_0 , "foo" ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String , java . lang . String ) { com . baeldung . java . regex . IDENT_0 . pattern = java . util . regex . IDENT_1 . METHOD_2 ( regex ) ; com . baeldung . java . regex . IDENT_0 . matcher = com . baeldung . java . regex . IDENT_0 . pattern . matcher ( text ) ; int matches = 0 ; while ( com . baeldung . java . regex . IDENT_0 . matcher . find ( ) ) matches ++ ; return matches ; }
org . junit . Assert . assertTrue ( ( matches > 0 ) )