METHOD_0 ( ) { "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String ) { java . util . List < java . lang . String > result = com . google . common . collect . Lists . newArrayList ( ) ; result . add ( org . apache . hadoop . yarn . IDENT_0 . IDENT_1 . METHOD_2 ( METHOD_3 ( IDENT_2 , STRING_0 ) ) ) ; java . lang . IDENT_3 < java . lang . String > IDENT_4 = org . apache . hadoop . yarn . IDENT_0 . IDENT_1 . IDENT_5 . split ( IDENT_2 ) ; java . lang . String controller = null ; java . lang . String action = null ; for ( java . lang . String s : IDENT_4 ) { if ( controller == null ) { if ( ( s . charAt ( 0 ) ) == STRING_1 ) { controller = STRING_2 ; result . add ( controller ) ; action = STRING_3 ; result . add ( action ) ; } else { controller = s ; } } else if ( action == null ) { if ( ( s . charAt ( 0 ) ) == STRING_1 ) { action = STRING_3 ; result . add ( action ) ; } else { action = s ; } } result . add ( s ) ; } if ( controller == null ) { result . add ( STRING_2 ) ; } if ( action == null ) { result . add ( STRING_3 ) ; } return result ; }
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "/" , STRING_2 , STRING_3 ) , org . apache . hadoop . yarn . IDENT_0 . IDENT_1 . METHOD_1 ( "/" ) )