METHOD_0 ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . METHOD_1 ( IDENT_0 . IDENT_1 , true ) ; org . apache . hadoop . yarn . api . records . IDENT_2 resource = mock ( org . apache . hadoop . yarn . api . records . IDENT_2 . class ) ; when ( resource . METHOD_2 ( ) ) . thenReturn ( IDENT_3 . IDENT_4 ) ; org . apache . hadoop . fs . Path IDENT_5 = mock ( org . apache . hadoop . fs . Path . class ) ; when ( IDENT_5 . getName ( ) ) . thenReturn ( STRING_0 ) ; java . lang . String user = STRING_1 ; org . apache . hadoop . yarn . server . api . IDENT_6 IDENT_7 = mock ( org . apache . hadoop . yarn . server . api . IDENT_6 . class ) ; org . apache . hadoop . fs . IDENT_8 fs = mock ( org . apache . hadoop . fs . IDENT_8 . class ) ; org . apache . hadoop . fs . IDENT_8 IDENT_9 = org . apache . hadoop . fs . IDENT_8 . METHOD_3 ( conf ) ; org . apache . hadoop . yarn . server . IDENT_10 . IDENT_11 . IDENT_12 . IDENT_13 . IDENT_14 IDENT_15 = METHOD_4 ( resource , IDENT_5 , user , conf , IDENT_7 , fs , IDENT_9 ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( ) { if ( ( resource . METHOD_2 ( ) ) == ( org . apache . hadoop . yarn . api . records . IDENT_3 . IDENT_4 ) ) { return true ; } final org . apache . hadoop . fs . Path IDENT_16 ; try { IDENT_16 = resource . getResource ( ) . METHOD_6 ( ) ; } catch ( java . net . IDENT_17 e ) { throw new java . io . IOException ( STRING_2 , e ) ; } org . apache . hadoop . fs . IDENT_8 IDENT_18 = IDENT_16 . METHOD_7 ( conf ) ; org . apache . hadoop . fs . IDENT_19 status = IDENT_18 . METHOD_8 ( IDENT_16 ) ; if ( ( status . METHOD_9 ( ) ) != ( resource . METHOD_10 ( ) ) ) { org . apache . hadoop . yarn . server . IDENT_10 . IDENT_11 . IDENT_12 . IDENT_13 . IDENT_14 . LOG . warn ( ( ( STRING_3 + IDENT_16 ) + STRING_4 ) ) ; return false ; } if ( status . METHOD_11 ( ) . equals ( user ) ) { return true ; } return METHOD_12 ( IDENT_16 , IDENT_18 , status ) ; }
org . junit . Assert . assertTrue ( IDENT_15 . METHOD_5 ( ) )