METHOD_0 ( ) { java . io . File IDENT_0 = java . nio . file . IDENT_1 . METHOD_1 ( STRING_0 ) . METHOD_2 ( ) ; try { org . apache . hadoop . hdfs . server . common . IDENT_2 . impl . IDENT_3 IDENT_4 = new org . apache . hadoop . hdfs . server . common . IDENT_2 . impl . METHOD_3 ( ) ; org . apache . hadoop . hdfs . server . common . IDENT_2 . impl . METHOD_3 . IDENT_5 IDENT_6 = new org . apache . hadoop . hdfs . server . common . IDENT_2 . impl . METHOD_3 . METHOD_4 ( ) . METHOD_5 ( IDENT_0 . getAbsolutePath ( ) ) ; org . apache . hadoop . hdfs . server . common . IDENT_2 . IDENT_7 . IDENT_8 < org . apache . hadoop . hdfs . server . common . IDENT_9 > writer = IDENT_4 . METHOD_6 ( IDENT_6 , org . apache . hadoop . hdfs . server . common . IDENT_2 . impl . IDENT_10 . IDENT_11 ) ; org . apache . hadoop . hdfs . server . common . IDENT_9 fr = new org . apache . hadoop . hdfs . server . common . METHOD_7 ( 1 , new org . apache . hadoop . fs . Path ( STRING_1 ) , 1 , 1 , 1 ) ; writer . store ( fr ) ; writer . close ( ) ; org . apache . hadoop . hdfs . server . common . IDENT_2 . IDENT_7 . IDENT_12 < org . apache . hadoop . hdfs . server . common . METHOD_7 > reader = IDENT_4 . METHOD_8 ( IDENT_6 , org . apache . hadoop . hdfs . server . common . IDENT_2 . impl . IDENT_10 . IDENT_11 ) ; org . apache . hadoop . hdfs . server . common . METHOD_7 IDENT_13 = reader . resolve ( new org . apache . hadoop . hdfs . protocol . METHOD_9 ( 1 , 1 , 1 ) ) . get ( ) ; "<AssertPlaceHolder>" ; reader . close ( ) ; } finally { IDENT_0 . delete ( ) ; } } get ( ) { try { java . util . List < org . apache . hadoop . yarn . api . records . IDENT_14 > IDENT_15 = client . METHOD_10 ( ) ; if ( ( IDENT_15 == null ) || ( IDENT_15 . isEmpty ( ) ) ) { return false ; } org . apache . hadoop . yarn . api . records . IDENT_16 IDENT_17 = IDENT_15 . get ( 0 ) . METHOD_11 ( ) ; java . util . List < org . apache . hadoop . yarn . api . records . IDENT_18 > IDENT_19 = client . METHOD_12 ( IDENT_17 ) ; if ( ( IDENT_19 == null ) || ( IDENT_19 . isEmpty ( ) ) ) { return false ; } org . apache . hadoop . yarn . api . records . IDENT_20 IDENT_21 = IDENT_19 . get ( 0 ) . METHOD_13 ( ) ; java . util . List < org . apache . hadoop . yarn . api . records . IDENT_22 > IDENT_23 = client . METHOD_14 ( IDENT_21 ) ; return ( IDENT_23 . size ( ) ) == IDENT_24 ; } catch ( java . lang . Exception e ) { return false ; } }
org . junit . Assert . assertEquals ( fr , IDENT_13 )