METHOD_0 ( ) { IDENT_0 = new org . apache . hadoop . yarn . server . IDENT_1 . METHOD_1 ( conf ) ; IDENT_0 . start ( ) ; org . apache . hadoop . yarn . server . IDENT_1 . IDENT_2 IDENT_3 = new org . apache . hadoop . yarn . server . IDENT_1 . METHOD_2 ( STRING_0 , INT_0 , IDENT_0 . METHOD_3 ( ) ) ; IDENT_3 . METHOD_4 ( ) ; org . apache . hadoop . yarn . api . records . IDENT_4 resource = org . apache . hadoop . yarn . util . IDENT_5 . METHOD_5 ( org . apache . hadoop . yarn . api . records . IDENT_4 . class ) ; resource . METHOD_6 ( 200 ) ; org . apache . hadoop . yarn . server . IDENT_1 . IDENT_6 . IDENT_7 IDENT_8 = IDENT_0 . METHOD_7 ( resource , "" , org . apache . hadoop . security . IDENT_9 . METHOD_8 ( ) . METHOD_9 ( ) , null , false , null , IDENT_10 . IDENT_11 , null , null , true , true , false , null , 0 , null , true , null ) ; org . apache . hadoop . yarn . server . IDENT_1 . IDENT_12 IDENT_13 = org . apache . hadoop . yarn . server . IDENT_1 . METHOD_1 . METHOD_10 ( IDENT_8 , IDENT_0 , IDENT_3 ) ; IDENT_13 . METHOD_11 ( STRING_1 , 1000 , 2 , new java . util . ArrayList < org . apache . hadoop . yarn . api . records . IDENT_14 > ( ) ) ; IDENT_3 . METHOD_12 ( true ) ; java . util . List < org . apache . hadoop . yarn . api . records . IDENT_15 > IDENT_16 = IDENT_13 . METHOD_11 ( new java . util . ArrayList < org . apache . hadoop . yarn . api . records . IDENT_17 > ( ) , new java . util . ArrayList < org . apache . hadoop . yarn . api . records . IDENT_14 > ( ) ) . METHOD_13 ( ) ; while ( ( IDENT_16 . size ( ) ) < 2 ) { IDENT_3 . METHOD_12 ( true ) ; IDENT_16 . addAll ( IDENT_13 . METHOD_11 ( new java . util . ArrayList < org . apache . hadoop . yarn . api . records . IDENT_17 > ( ) , new java . util . ArrayList < org . apache . hadoop . yarn . api . records . IDENT_14 > ( ) ) . METHOD_13 ( ) ) ; java . lang . Thread . sleep ( 100 ) ; } IDENT_3 . METHOD_12 ( IDENT_13 . METHOD_14 ( ) , 1 , IDENT_18 . IDENT_19 ) ; IDENT_0 . METHOD_15 ( IDENT_8 . METHOD_16 ( ) , IDENT_20 . IDENT_21 ) ; org . apache . hadoop . yarn . server . IDENT_1 . IDENT_12 IDENT_22 = org . apache . hadoop . yarn . server . IDENT_1 . METHOD_1 . METHOD_10 ( IDENT_8 , IDENT_0 , IDENT_3 ) ; IDENT_23 = new org . apache . hadoop . yarn . server . IDENT_1 . METHOD_1 ( conf , IDENT_0 . METHOD_17 ( ) ) ; IDENT_23 . start ( ) ; IDENT_3 . METHOD_18 ( IDENT_23 . METHOD_3 ( ) ) ; org . apache . hadoop . yarn . server . api . IDENT_24 . IDENT_25 IDENT_26 = org . apache . hadoop . yarn . server . IDENT_1 . IDENT_27 . METHOD_19 ( IDENT_13 . METHOD_14 ( ) , 1 , IDENT_18 . IDENT_28 ) ; org . apache . hadoop . yarn . server . api . IDENT_24 . IDENT_25 IDENT_29 = org . apache . hadoop . yarn . server . IDENT_1 . IDENT_27 . METHOD_19 ( IDENT_13 . METHOD_14 ( ) , 2 , IDENT_18 . IDENT_19 ) ; org . apache . hadoop . yarn . server . api . IDENT_24 . IDENT_25 IDENT_30 = org . apache . hadoop . yarn . server . IDENT_1 . IDENT_27 . METHOD_19 ( IDENT_13 . METHOD_14 ( ) , 3 , IDENT_18 . IDENT_28 ) ; IDENT_3 . METHOD_4 ( java . util . Arrays . asList ( IDENT_26 , IDENT_30 , IDENT_29 ) , null ) ; java . lang . Thread . sleep ( 200 ) ; org . apache . hadoop . yarn . server . IDENT_1 . IDENT_6 . IDENT_7 IDENT_31 = IDENT_23 . METHOD_20 ( ) . METHOD_21 ( ) . get ( IDENT_8 . METHOD_16 ( ) ) ; org . apache . hadoop . yarn . server . IDENT_1 . IDENT_6 . IDENT_32 . IDENT_33 IDENT_34 = IDENT_31 . METHOD_22 ( ) ; "<AssertPlaceHolder>" ; } METHOD_23 ( ) { this . IDENT_35 . METHOD_24 ( ) ; try { java . util . List < org . apache . hadoop . yarn . api . records . IDENT_36 > IDENT_37 = new java . util . ArrayList ( ) ; for ( java . util . Collection < org . apache . hadoop . yarn . api . records . IDENT_36 > IDENT_38 : IDENT_39 . values ( ) ) { IDENT_37 . addAll ( IDENT_38 ) ; } return IDENT_37 ; } finally { this . IDENT_35 . METHOD_25 ( ) ; } }
org . junit . Assert . assertEquals ( 1 , IDENT_34 . METHOD_23 ( ) . size ( ) )