METHOD_0 ( ) { org . pentaho . hadoop . IDENT_0 . common . IDENT_1 ch = new org . pentaho . hadoop . IDENT_0 . common . METHOD_1 ( org . pentaho . hadoop . IDENT_0 . common . IDENT_2 . IDENT_3 ) ; java . net . URL url = new java . net . URL ( STRING_0 ) ; org . apache . hadoop . conf . Configuration conf = mock ( org . apache . hadoop . conf . Configuration . class ) ; org . apache . hadoop . fs . IDENT_4 fs = mock ( org . apache . hadoop . fs . IDENT_4 . class ) ; org . apache . commons . IDENT_5 . IDENT_6 source = mock ( org . apache . commons . IDENT_5 . IDENT_6 . class ) ; org . apache . hadoop . fs . Path IDENT_7 = mock ( org . apache . hadoop . fs . Path . class ) ; org . apache . commons . IDENT_5 . IDENT_6 IDENT_8 = mock ( org . apache . commons . IDENT_5 . IDENT_6 . class ) ; org . apache . hadoop . fs . Path root = mock ( org . apache . hadoop . fs . Path . class ) ; org . apache . commons . IDENT_5 . IDENT_6 [ ] IDENT_9 = new org . apache . commons . IDENT_5 . IDENT_6 [ 12 ] ; for ( int i = 0 ; i < ( IDENT_9 . length ) ; i ++ ) { java . net . URL IDENT_10 = new java . net . URL ( ( STRING_1 + i ) ) ; org . apache . commons . IDENT_5 . IDENT_6 IDENT_11 = mock ( org . apache . commons . IDENT_5 . IDENT_6 . class ) ; IDENT_9 [ i ] = IDENT_11 ; doReturn ( IDENT_10 ) . when ( IDENT_11 ) . METHOD_2 ( ) ; } doReturn ( url ) . when ( source ) . METHOD_2 ( ) ; doReturn ( conf ) . when ( fs ) . METHOD_3 ( ) ; doReturn ( 0 ) . when ( conf ) . METHOD_4 ( any ( java . lang . String . class ) , METHOD_5 ( ) ) ; doReturn ( true ) . when ( source ) . exists ( ) ; doReturn ( IDENT_9 ) . when ( IDENT_8 ) . METHOD_6 ( any ( org . apache . commons . IDENT_5 . IDENT_12 . class ) ) ; doReturn ( true ) . when ( fs ) . delete ( root , true ) ; doReturn ( IDENT_9 . length ) . when ( source ) . delete ( any ( org . apache . commons . IDENT_5 . IDENT_13 . class ) ) ; METHOD_7 ( ) . when ( fs ) . METHOD_8 ( any ( org . apache . hadoop . fs . Path . class ) , any ( org . apache . hadoop . fs . Path . class ) ) ; METHOD_7 ( ) . when ( fs ) . METHOD_9 ( any ( org . apache . hadoop . fs . Path . class ) , any ( org . apache . hadoop . fs . IDENT_14 . IDENT_15 . class ) ) ; doReturn ( true ) . when ( fs ) . METHOD_10 ( any ( org . apache . hadoop . fs . Path . class ) , METHOD_11 ( ) ) ; try { try { ch . METHOD_12 ( source , fs , IDENT_7 , true ) ; java . util . List < java . lang . String > IDENT_16 = ch . METHOD_6 ( IDENT_8 , null ) ; "<AssertPlaceHolder>" ; } finally { fs . delete ( root , true ) ; } } finally { source . delete ( new org . apache . commons . IDENT_5 . METHOD_13 ( ) ) ; } } METHOD_6 ( org . apache . commons . IDENT_5 . IDENT_6 , java . lang . String ) { org . apache . commons . IDENT_5 . IDENT_6 [ ] IDENT_16 = root . METHOD_6 ( new org . apache . commons . IDENT_5 . METHOD_14 ( ) { @ org . pentaho . hadoop . IDENT_0 . common . Override public boolean METHOD_15 ( org . apache . commons . IDENT_5 . IDENT_17 IDENT_18 ) throws org . pentaho . hadoop . IDENT_0 . common . Exception { return ( extension == null ) || ( extension . equals ( IDENT_18 . METHOD_16 ( ) . getName ( ) . METHOD_17 ( ) ) ) ; } @ org . pentaho . hadoop . IDENT_0 . common . Override public boolean METHOD_18 ( org . apache . commons . IDENT_5 . IDENT_17 IDENT_18 ) throws org . pentaho . hadoop . IDENT_0 . common . Exception { return IDENT_19 . IDENT_20 . equals ( IDENT_18 . METHOD_16 ( ) . getType ( ) ) ; } } ) ; if ( IDENT_16 == null ) { return java . util . Collections . IDENT_21 ; } java . util . List < java . lang . String > IDENT_22 = new java . util . ArrayList < java . lang . String > ( ) ; for ( org . apache . commons . IDENT_5 . IDENT_6 file : IDENT_16 ) { try { IDENT_22 . add ( file . METHOD_2 ( ) . METHOD_19 ( ) . getPath ( ) ) ; } catch ( java . net . IDENT_23 ex ) { throw new org . apache . commons . IDENT_5 . METHOD_20 ( ( STRING_2 + ( file . METHOD_2 ( ) . getPath ( ) ) ) ) ; } } return IDENT_22 ; }
org . junit . Assert . assertEquals ( 12 , IDENT_16 . size ( ) )