METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( IDENT_1 , de . IDENT_2 . IDENT_3 . web . page . IDENT_4 . IDENT_5 , STRING_0 , de . IDENT_2 . IDENT_3 . web . page . IDENT_4 . IDENT_6 , IDENT_7 . IDENT_8 ) ) . thenReturn ( true ) ; when ( IDENT_9 . METHOD_2 ( de . IDENT_2 . IDENT_3 . web . page . IDENT_4 . IDENT_5 , de . IDENT_2 . IDENT_3 . web . page . IDENT_4 . IDENT_10 , de . IDENT_2 . IDENT_3 . web . page . IDENT_4 . IDENT_6 , STRING_1 , STRING_2 ) ) . thenReturn ( com . google . common . collect . Lists . newArrayList ( STRING_3 , STRING_2 ) ) ; @ de . IDENT_2 . IDENT_3 . web . page . METHOD_3 ( STRING_4 ) java . util . List < de . IDENT_2 . IDENT_3 . page . IDENT_11 > IDENT_12 = com . google . common . collect . Lists . newArrayList ( new de . IDENT_2 . IDENT_3 . page . METHOD_4 ( new de . IDENT_2 . IDENT_3 . page . METHOD_5 ( STRING_3 , STRING_5 , new java . util . Date ( ) ) , METHOD_4 . Status . IDENT_13 ) , new de . IDENT_2 . IDENT_3 . page . METHOD_4 ( new de . IDENT_2 . IDENT_3 . page . METHOD_5 ( STRING_3 , STRING_5 , new java . util . Date ( ) ) , STRING_6 ) ) ; java . util . IDENT_14 < java . lang . String , java . util . List < de . IDENT_2 . IDENT_3 . page . METHOD_4 > > results = com . google . common . collect . IDENT_15 . METHOD_6 ( ) ; results . put ( STRING_0 , IDENT_12 ) ; when ( IDENT_9 . METHOD_7 ( de . IDENT_2 . IDENT_3 . web . page . IDENT_4 . IDENT_5 , de . IDENT_2 . IDENT_3 . web . page . IDENT_4 . IDENT_10 , de . IDENT_2 . IDENT_3 . web . page . IDENT_4 . IDENT_6 , com . google . common . collect . Lists . newArrayList ( STRING_3 , STRING_2 ) , com . google . common . collect . IDENT_16 . METHOD_8 ( STRING_0 ) , java . util . Collections . < de . IDENT_2 . IDENT_3 . page . IDENT_17 > METHOD_9 ( ) , false , de . IDENT_2 . IDENT_3 . web . page . IDENT_4 . IDENT_18 , de . IDENT_2 . IDENT_3 . web . page . IDENT_4 . IDENT_19 ) ) . thenReturn ( results ) ; java . lang . String view = IDENT_20 . METHOD_7 ( de . IDENT_2 . IDENT_3 . web . page . IDENT_4 . IDENT_5 , de . IDENT_2 . IDENT_3 . web . page . IDENT_4 . IDENT_10 , de . IDENT_2 . IDENT_3 . web . page . IDENT_4 . IDENT_6 , STRING_1 , STRING_2 , com . google . common . collect . IDENT_16 . METHOD_8 ( STRING_0 ) , false , IDENT_21 , model , IDENT_1 , de . IDENT_2 . IDENT_3 . web . page . IDENT_4 . IDENT_19 ) ; "<AssertPlaceHolder>" ; verify ( model ) . METHOD_10 ( STRING_7 , results ) ; verify ( model ) . METHOD_10 ( STRING_8 , STRING_1 ) ; verify ( model ) . METHOD_10 ( STRING_1 , STRING_2 ) ; verify ( model ) . METHOD_10 ( STRING_5 0 , java . util . Collections . METHOD_9 ( ) ) ; } METHOD_7 ( java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . util . Set , boolean , org . springframework . web . context . request . IDENT_22 , org . springframework . ui . IDENT_23 , org . springframework . security . core . IDENT_24 , java . util . Locale ) { path = de . IDENT_2 . IDENT_3 . util . IDENT_25 . METHOD_11 ( path ) ; for ( java . lang . String IDENT_26 : IDENT_27 ) { if ( ! ( IDENT_0 . METHOD_1 ( authentication , IDENT_28 , IDENT_26 , path , IDENT_7 . IDENT_8 ) ) ) { return de . IDENT_2 . IDENT_3 . web . util . IDENT_29 . METHOD_12 ( ) ; } } java . util . List < java . lang . String > IDENT_30 = IDENT_9 . METHOD_2 ( IDENT_28 , IDENT_31 , path , IDENT_32 , IDENT_33 ) ; if ( IDENT_30 . isEmpty ( ) ) { throw new java . lang . IllegalArgumentException ( STRING_9 ) ; } de . IDENT_2 . IDENT_3 . IDENT_34 . User user = IDENT_35 . METHOD_13 ( authentication . getName ( ) ) ; java . util . Map < java . lang . String , java . lang . String [ ] > params = request . METHOD_14 ( ) ; java . util . Set < de . IDENT_2 . IDENT_3 . page . IDENT_17 > IDENT_36 = com . google . common . collect . IDENT_16 . METHOD_8 ( ) ; for ( Map . Entry < java . lang . String , java . lang . String [ ] > entry : params . entrySet ( ) ) { java . lang . String name = entry . getKey ( ) ; if ( name . startsWith ( STRING_10 ) ) { java . lang . String IDENT_37 = org . apache . commons . lang3 . StringUtils . METHOD_15 ( name , STRING_11 ) ; java . lang . String IDENT_38 = org . apache . commons . lang3 . StringUtils . METHOD_16 ( IDENT_37 , "/" ) ; java . lang . String commit = org . apache . commons . lang3 . StringUtils . METHOD_15 ( IDENT_37 , "/" ) ; java . lang . String text = entry . getValue ( ) [ 0 ] ; de . IDENT_2 . IDENT_3 . page . IDENT_17 resolve = new de . IDENT_2 . IDENT_3 . page . METHOD_17 ( IDENT_38 , commit , text ) ; IDENT_36 . add ( resolve ) ; } } java . util . Map < java . lang . String , java . util . List < de . IDENT_2 . IDENT_3 . page . METHOD_4 > > results = IDENT_9 . METHOD_7 ( IDENT_28 , IDENT_31 , path , IDENT_30 , IDENT_27 , IDENT_36 , IDENT_39 , user , IDENT_40 ) ; if ( ( results . METHOD_18 ( ) . size ( ) ) != ( IDENT_27 . size ( ) ) ) { throw new java . lang . IllegalStateException ( ) ; } if ( ! IDENT_39 ) { boolean IDENT_41 = true ; IDENT_42 : for ( java . util . List < de . IDENT_2 . IDENT_3 . page . METHOD_4 > IDENT_12 : results . values ( ) ) { for ( de . IDENT_2 . IDENT_3 . page . METHOD_4 result : IDENT_12 ) { if ( ( result . getStatus ( ) ) != ( METHOD_4 . Status . IDENT_13 ) ) { IDENT_41 = false ; break IDENT_42 ; } } } if ( IDENT_41 ) { return ( ( ( ( STRING_12 + IDENT_28 ) + "/" ) + IDENT_31 ) + "/" ) + ( de . IDENT_2 . IDENT_3 . util . IDENT_25 . METHOD_19 ( path ) ) ; } } model . METHOD_10 ( STRING_7 , results ) ; model . METHOD_10 ( STRING_8 , IDENT_32 ) ; model . METHOD_10 ( STRING_1 , IDENT_33 ) ; model . METHOD_10 ( STRING_13 , IDENT_36 ) ; return STRING_14 ; }
org . junit . Assert . assertEquals ( STRING_14 , view )