METHOD_0 ( ) { final org . IDENT_0 . api . resources . File IDENT_1 = new org . IDENT_0 . api . resources . File ( "test" ) ; METHOD_1 ( ) . METHOD_2 ( STRING_0 ) ; final org . IDENT_0 . api . batch . IDENT_2 context = mock ( org . IDENT_0 . api . batch . IDENT_2 . class ) ; final java . util . Collection < org . IDENT_0 . api . rules . IDENT_3 > IDENT_4 = new java . util . ArrayList < org . IDENT_0 . api . rules . IDENT_3 > ( ) ; final org . IDENT_0 . api . utils . IDENT_5 parser = new org . IDENT_0 . api . utils . METHOD_3 ( new org . IDENT_0 . plugins . IDENT_6 . IDENT_7 . METHOD_4 ( IDENT_4 , project ( ) , context ) ) ; when ( context . getResource ( any ( org . IDENT_0 . api . resources . IDENT_8 . class ) ) ) . thenReturn ( IDENT_1 ) ; parser . parse ( new org . apache . tools . IDENT_9 . filters . METHOD_5 ( org . IDENT_0 . plugins . IDENT_6 . IDENT_7 . IDENT_10 . IDENT_11 ) ) ; "<AssertPlaceHolder>" ; } parse ( java . io . IDENT_12 ) { final java . util . List < org . IDENT_0 . api . rules . IDENT_13 > rules = new java . util . ArrayList < org . IDENT_0 . api . rules . IDENT_13 > ( ) ; final java . util . List < java . lang . String > IDENT_14 = org . apache . commons . io . IDENT_15 . METHOD_6 ( reader ) ; java . lang . String IDENT_16 = null ; org . IDENT_0 . api . rules . IDENT_13 rule = null ; boolean IDENT_17 = false ; for ( java . lang . String line : IDENT_14 ) { if ( METHOD_7 ( line ) ) { IDENT_17 = false ; } else if ( line . matches ( STRING_1 ) ) { org . IDENT_0 . plugins . IDENT_6 . IDENT_7 . IDENT_18 . LOGGER . debug ( STRING_2 , IDENT_16 ) ; if ( rule != null ) { final int index = rule . METHOD_8 ( ) . METHOD_9 ( IDENT_16 ) ; if ( index > 0 ) { rule . METHOD_10 ( rule . METHOD_8 ( ) . substring ( 0 , index ) ) ; } } rule = org . IDENT_0 . api . rules . IDENT_13 . create ( ) ; rules . add ( rule ) ; rule . setName ( IDENT_16 ) ; rule . METHOD_11 ( IDENT_16 ) ; } else if ( line . matches ( STRING_3 ) ) { IDENT_17 = true ; rule . METHOD_10 ( line . substring ( ( ( line . indexOf ( STRING_4 ) ) + 1 ) ) ) ; } else if ( line . matches ( STRING_5 ) ) { IDENT_17 = true ; } else if ( line . matches ( STRING_6 ) ) { IDENT_17 = false ; final java . lang . String IDENT_19 = line . substring ( STRING_7 . length ( ) ) ; rule . METHOD_12 ( org . IDENT_0 . api . rules . IDENT_20 . values ( ) [ java . lang . Integer . valueOf ( IDENT_19 ) ] ) ; } else { if ( IDENT_17 ) { line = METHOD_13 ( line ) ; rule . METHOD_10 ( ( ( ( rule . METHOD_8 ( ) ) + STRING_8 ) + line ) ) ; } } IDENT_16 = line ; } return rules ; }
org . junit . Assert . assertFalse ( IDENT_4 . isEmpty ( ) )