METHOD_0 ( ) { jenkins . model . IDENT_0 j = METHOD_1 ( ) ; hudson . IDENT_1 . IDENT_2 parent = mock ( hudson . IDENT_1 . IDENT_2 . class ) ; when ( parent . METHOD_2 ( ) ) . thenReturn ( STRING_0 ) ; java . lang . String IDENT_3 = STRING_1 ; org . IDENT_4 . IDENT_5 . IDENT_6 req = hudson . IDENT_1 . METHOD_3 ( IDENT_3 ) ; METHOD_4 ( org . IDENT_4 . IDENT_5 . IDENT_7 . class ) ; when ( org . IDENT_4 . IDENT_5 . IDENT_7 . METHOD_5 ( ) ) . thenReturn ( req ) ; hudson . model . IDENT_8 view = mock ( hudson . model . IDENT_8 . class ) ; when ( view . METHOD_6 ( ) ) . thenReturn ( parent ) ; when ( parent . METHOD_7 ( ) ) . thenReturn ( parent ) ; METHOD_8 ( req , hudson . IDENT_1 . METHOD_9 ( j , STRING_2 ) , hudson . IDENT_1 . METHOD_9 ( parent , STRING_3 ) , hudson . IDENT_1 . METHOD_9 ( view , STRING_4 ) ) ; hudson . model . IDENT_9 i = METHOD_10 ( parent , STRING_5 , STRING_6 ) ; when ( view . METHOD_11 ( ) ) . thenReturn ( java . util . Arrays . asList ( i ) ) ; java . lang . String result = hudson . IDENT_10 . METHOD_12 ( i ) ; "<AssertPlaceHolder>" ; } METHOD_12 ( hudson . model . IDENT_11 ) { java . util . Map < java . lang . Object , java . lang . String > IDENT_12 = new java . util . HashMap < java . lang . Object , java . lang . String > ( ) ; hudson . model . IDENT_8 view = null ; org . IDENT_4 . IDENT_5 . IDENT_6 request = org . IDENT_4 . IDENT_5 . IDENT_7 . METHOD_5 ( ) ; for ( org . IDENT_4 . IDENT_5 . IDENT_13 a : request . METHOD_13 ( ) ) { IDENT_12 . put ( a . METHOD_14 ( ) , a . METHOD_15 ( ) ) ; if ( ( a . METHOD_14 ( ) ) instanceof hudson . model . IDENT_8 ) view = ( ( hudson . model . IDENT_8 ) ( a . METHOD_14 ( ) ) ) ; } java . lang . String path = IDENT_12 . get ( p ) ; if ( path != null ) { return hudson . IDENT_10 . METHOD_16 ( ( path + STRING_7 ) ) ; } hudson . model . IDENT_11 i = p ; java . lang . String url = "" ; while ( true ) { hudson . model . IDENT_14 IDENT_15 = i . METHOD_17 ( ) ; url = ( i . METHOD_2 ( ) ) + url ; if ( ( IDENT_15 == ( jenkins . model . IDENT_0 . getInstance ( ) ) ) || ( ( view != null ) && ( IDENT_15 == ( view . METHOD_6 ( ) . METHOD_7 ( ) ) ) ) ) { assert i instanceof hudson . model . IDENT_9 ; if ( view != null ) { return hudson . IDENT_10 . METHOD_16 ( ( ( ( IDENT_12 . get ( view ) ) + STRING_7 ) + url ) ) ; } else { return hudson . IDENT_10 . METHOD_16 ( ( ( ( request . METHOD_18 ( ) ) + STRING_7 ) + ( p . METHOD_19 ( ) ) ) ) ; } } path = IDENT_12 . get ( IDENT_15 ) ; if ( path != null ) { return hudson . IDENT_10 . METHOD_16 ( ( ( path + STRING_7 ) + url ) ) ; } assert IDENT_15 instanceof hudson . model . IDENT_11 ; i = ( ( hudson . model . IDENT_11 ) ( IDENT_15 ) ) ; } }
org . junit . Assert . assertEquals ( STRING_5 , result )