METHOD_0 ( ) { com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . config . IDENT_3 config = com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . mock . IDENT_4 . METHOD_1 ( ) ; com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . IDENT_5 . IDENT_6 instance = new com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . IDENT_5 . METHOD_2 ( config , jenkins ) ; com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . IDENT_5 . model . IDENT_7 . IDENT_8 IDENT_9 = mock ( com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . IDENT_5 . model . IDENT_7 . IDENT_8 . class ) ; com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . IDENT_5 . model . IDENT_7 . IDENT_8 [ ] IDENT_10 = new com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . IDENT_5 . model . IDENT_7 . IDENT_8 . Entry [ 2 ] ; com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . IDENT_11 . IDENT_12 IDENT_2 = mock ( com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . IDENT_11 . IDENT_12 . class ) ; when ( IDENT_2 . METHOD_3 ( ) ) . thenReturn ( null ) ; IDENT_10 [ 0 ] = com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . mock . IDENT_4 . METHOD_4 ( IDENT_2 , Result . IDENT_13 ) ; IDENT_2 = mock ( com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . IDENT_11 . IDENT_12 . class ) ; when ( IDENT_2 . METHOD_3 ( ) ) . thenReturn ( java . lang . Integer . valueOf ( 2 ) ) ; IDENT_10 [ 1 ] = com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . mock . IDENT_4 . METHOD_4 ( IDENT_2 , Result . IDENT_13 ) ; when ( IDENT_9 . METHOD_5 ( ) ) . thenReturn ( IDENT_10 ) ; java . lang . Integer result = instance . METHOD_6 ( IDENT_9 , false ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . IDENT_5 . model . IDENT_7 . IDENT_8 , boolean ) { java . lang . Integer IDENT_14 = Integer . MAX_VALUE ; for ( com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . IDENT_5 . model . IDENT_7 . IDENT_8 . Entry entry : IDENT_9 . METHOD_5 ( ) ) { hudson . model . IDENT_15 build = entry . METHOD_7 ( ) ; if ( build == null ) { continue ; } hudson . model . Result result = build . METHOD_8 ( ) ; if ( IDENT_16 && ( result == ( hudson . model . Result . IDENT_17 ) ) ) { continue ; } com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . IDENT_11 . IDENT_12 IDENT_2 = com . IDENT_0 . hudson . plugins . IDENT_1 . IDENT_2 . IDENT_11 . IDENT_12 . METHOD_9 ( entry . METHOD_10 ( ) ) ; if ( METHOD_11 ( IDENT_2 . METHOD_12 ( ) , result ) ) { continue ; } java . lang . Integer IDENT_18 = METHOD_13 ( result , IDENT_2 ) ; if ( IDENT_18 != null ) { IDENT_14 = java . lang . Math . min ( IDENT_14 , IDENT_18 ) ; } } if ( IDENT_14 == ( Integer . MAX_VALUE ) ) { return null ; } return IDENT_14 ; }
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 2 ) , result )