METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( repository ) ) . thenReturn ( null ) ; javax . ws . rs . core . Response actual = rest . METHOD_2 ( repository , STRING_0 , STRING_1 , null , 0 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( com . IDENT_1 . IDENT_2 . repository . IDENT_3 , java . lang . String , java . lang . String , java . lang . String , long ) { if ( IDENT_4 . METHOD_3 ( ) ) { com . IDENT_1 . IDENT_2 . IDENT_5 . IDENT_6 IDENT_7 = IDENT_0 . METHOD_1 ( repository ) ; if ( IDENT_7 == null ) { return javax . ws . rs . core . Response . status ( Response . Status . IDENT_8 ) . build ( ) ; } java . lang . String IDENT_9 = repository . METHOD_4 ( ) . getKey ( ) ; java . lang . String url = IDENT_10 . METHOD_5 ( ) . toString ( ) ; com . IDENT_11 . IDENT_12 . IDENT_13 . item . IDENT_14 . Builder IDENT_15 = new com . IDENT_11 . IDENT_12 . IDENT_13 . item . IDENT_14 . Builder ( ) . METHOD_6 ( IDENT_16 , commit , repository , IDENT_9 , IDENT_17 . IDENT_18 , url ) ; if ( IDENT_19 != null ) { com . IDENT_1 . IDENT_2 . IDENT_20 . IDENT_21 IDENT_22 = IDENT_23 . METHOD_7 ( repository . getId ( ) , IDENT_24 ) ; if ( IDENT_22 != null ) { IDENT_15 . METHOD_8 ( IDENT_22 , repository , IDENT_9 , IDENT_17 . IDENT_18 , url ) ; } } com . IDENT_11 . IDENT_12 . IDENT_13 . rest . List < com . IDENT_11 . IDENT_12 . IDENT_13 . rest . Map < java . lang . String , java . lang . Object > > data = new com . IDENT_11 . IDENT_12 . IDENT_13 . rest . ArrayList ( ) ; for ( com . IDENT_11 . IDENT_12 . IDENT_13 . item . IDENT_25 job : IDENT_0 . METHOD_2 ( IDENT_7 . METHOD_9 ( ) ) ) { if ( ( job . METHOD_10 ( ) . contains ( IDENT_17 . IDENT_18 ) ) && ( IDENT_26 . METHOD_11 ( job , repository , IDENT_4 . METHOD_12 ( ) ) ) ) { data . add ( job . METHOD_9 ( IDENT_15 . build ( ) ) ) ; } } return javax . ws . rs . core . Response . METHOD_13 ( data ) . build ( ) ; } return javax . ws . rs . core . Response . status ( Response . Status . IDENT_27 ) . build ( ) ; }
org . junit . Assert . assertEquals ( Response . Status . IDENT_8 . getStatusCode ( ) , actual . getStatus ( ) )