test ( ) { java . lang . String [ ] args = new java . lang . String [ ] { STRING_0 } ; org . apache . log4j . IDENT_0 . METHOD_0 ( IDENT_1 . IDENT_2 ) ; java . lang . String IDENT_3 = null ; if ( ( args . length ) < 1 ) { try { com . IDENT_4 . IDENT_5 . IDENT_6 . common . utils . IDENT_7 . METHOD_1 ( ) ; } catch ( java . lang . Exception e ) { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . IDENT_8 . IDENT_9 . error ( STRING_1 , e ) ; java . lang . System . METHOD_2 ( IDENT_10 . IDENT_11 . getStatus ( ) ) ; } java . lang . System . METHOD_2 ( IDENT_10 . IDENT_12 . getStatus ( ) ) ; } else if ( ( args . length ) == 1 ) { IDENT_3 = args [ 0 ] ; } else { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . IDENT_8 . IDENT_9 . error ( STRING_2 ) ; java . lang . System . METHOD_2 ( IDENT_10 . IDENT_11 . getStatus ( ) ) ; } com . IDENT_4 . IDENT_5 . IDENT_6 . common . config . IDENT_13 IDENT_14 = null ; com . IDENT_4 . IDENT_5 . IDENT_6 . common . interfaces . IDENT_15 IDENT_16 = null ; java . util . Map < java . lang . String , com . IDENT_4 . IDENT_5 . IDENT_6 . common . interfaces . IDENT_15 > IDENT_17 = null ; try { IDENT_14 = com . IDENT_4 . IDENT_5 . IDENT_6 . common . utils . IDENT_18 . METHOD_3 ( IDENT_3 ) ; IDENT_16 = com . IDENT_4 . IDENT_5 . IDENT_6 . common . utils . IDENT_18 . METHOD_4 ( ) ; IDENT_17 = com . IDENT_4 . IDENT_5 . IDENT_6 . common . utils . IDENT_18 . METHOD_5 ( ) ; } catch ( java . lang . Exception e ) { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . IDENT_8 . IDENT_9 . error ( STRING_3 , e ) ; java . lang . System . METHOD_2 ( IDENT_10 . IDENT_19 . getStatus ( ) ) ; } com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . IDENT_20 engine = new com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 ( IDENT_16 , IDENT_17 ) ; int IDENT_21 = engine . run ( IDENT_14 ) ; com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . IDENT_8 . IDENT_9 . info ( ( STRING_4 + IDENT_21 ) ) ; "<AssertPlaceHolder>" ; } run ( com . IDENT_4 . IDENT_5 . IDENT_6 . common . config . IDENT_13 ) { java . util . Date now = new java . util . Date ( ) ; java . lang . String source = null ; java . lang . String target = null ; com . IDENT_4 . IDENT_5 . IDENT_6 . engine . monitor . IDENT_22 IDENT_23 = null ; long time = 0 ; com . IDENT_4 . IDENT_5 . IDENT_6 . common . IDENT_10 status = com . IDENT_4 . IDENT_5 . IDENT_6 . common . IDENT_10 . IDENT_24 ; int IDENT_25 = status . getStatus ( ) ; com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . IDENT_26 IDENT_27 = null ; try { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . info ( STRING_5 ) ; java . util . List < com . IDENT_4 . IDENT_5 . IDENT_6 . engine . storage . IDENT_28 > IDENT_29 = METHOD_7 ( IDENT_14 ) ; if ( ( IDENT_29 == null ) || ( IDENT_29 . isEmpty ( ) ) ) { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . error ( STRING_6 0 ) ; return IDENT_10 . IDENT_11 . getStatus ( ) ; } int IDENT_30 = IDENT_14 . METHOD_8 ( ) ; com . IDENT_4 . IDENT_5 . IDENT_6 . engine . storage . IDENT_31 IDENT_32 = new com . IDENT_4 . IDENT_5 . IDENT_6 . engine . storage . METHOD_9 ( IDENT_29 ) ; IDENT_23 = new com . IDENT_4 . IDENT_5 . IDENT_6 . engine . monitor . METHOD_10 ( IDENT_30 ) ; IDENT_23 . METHOD_11 ( IDENT_32 ) ; com . IDENT_4 . IDENT_5 . IDENT_6 . common . config . IDENT_33 IDENT_34 = IDENT_14 . METHOD_12 ( ) ; java . util . List < com . IDENT_4 . IDENT_5 . IDENT_6 . common . config . IDENT_33 > IDENT_35 = IDENT_14 . METHOD_13 ( ) ; com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . IDENT_36 . METHOD_14 ( IDENT_34 . METHOD_15 ( ) ) ; source = ( ( ( ( ( ( IDENT_34 . METHOD_16 ( ) ) + "/" ) + ( IDENT_34 . METHOD_15 ( ) . getValue ( com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_37 , STRING_7 ) ) ) + "/" ) + ( IDENT_34 . METHOD_15 ( ) . getValue ( com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_38 , "" ) ) ) + "/" ) + ( IDENT_34 . METHOD_15 ( ) . getValue ( com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_39 , "" ) ) ; java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; for ( int i = 0 ; i < ( IDENT_35 . size ( ) ) ; i ++ ) { com . IDENT_4 . IDENT_5 . IDENT_6 . common . config . IDENT_33 conf = IDENT_35 . get ( i ) ; com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . IDENT_36 . METHOD_14 ( conf . METHOD_15 ( ) ) ; sb . append ( conf . METHOD_16 ( ) ) . append ( "/" ) . append ( conf . METHOD_15 ( ) . getValue ( com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_37 , STRING_8 8 ) ) . append ( "/" ) . append ( conf . METHOD_15 ( ) . getValue ( com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_38 , "" ) ) . append ( "/" ) . append ( conf . METHOD_15 ( ) . getValue ( com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_39 , "" ) ) ; if ( i != ( ( IDENT_35 . size ( ) ) - 1 ) ) { sb . append ( STRING_6 1 ) ; } } target = sb . toString ( ) ; com . IDENT_4 . IDENT_5 . IDENT_6 . common . interfaces . IDENT_15 IDENT_40 = IDENT_41 . get ( IDENT_34 . METHOD_16 ( ) ) ; com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . info ( STRING_8 2 ) ; com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . IDENT_42 IDENT_43 = com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . IDENT_42 . getInstance ( IDENT_32 , IDENT_23 ) ; IDENT_43 . run ( IDENT_34 , IDENT_40 ) ; com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . info ( STRING_8 1 ) ; IDENT_27 = com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . IDENT_26 . getInstance ( IDENT_32 , IDENT_23 , IDENT_30 ) ; IDENT_27 . run ( IDENT_35 , IDENT_41 ) ; int IDENT_44 = 0 ; int IDENT_45 = IDENT_16 . METHOD_17 ( IDENT_46 . IDENT_47 , com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_47 ) ; int IDENT_48 = IDENT_16 . METHOD_17 ( IDENT_46 . IDENT_49 , com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_50 ) ; IDENT_51 = IDENT_16 . METHOD_18 ( IDENT_46 . IDENT_52 , false ) ; while ( true ) { IDENT_44 ++ ; IDENT_25 = METHOD_19 ( IDENT_43 , IDENT_27 , IDENT_23 , IDENT_32 ) ; status = com . IDENT_4 . IDENT_5 . IDENT_6 . common . IDENT_10 . METHOD_20 ( IDENT_25 ) ; if ( status == null ) { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . error ( ( ( STRING_8 0 + IDENT_25 ) + STRING_8 6 ) ) ; return IDENT_10 . IDENT_11 . getStatus ( ) ; } if ( ( status == ( com . IDENT_4 . IDENT_5 . IDENT_6 . common . IDENT_10 . IDENT_11 ) ) || ( ( ( status . getStatus ( ) ) >= ( IDENT_10 . IDENT_11 . getStatus ( ) ) ) && ( ( status . getStatus ( ) ) < ( IDENT_10 . IDENT_53 . getStatus ( ) ) ) ) ) { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . error ( STRING_9 ) ; IDENT_27 . METHOD_21 ( ) ; break ; } else if ( ( status == ( com . IDENT_4 . IDENT_5 . IDENT_6 . common . IDENT_10 . IDENT_54 ) ) || ( ( status . getStatus ( ) ) >= ( IDENT_10 . IDENT_53 . getStatus ( ) ) ) ) { java . util . Set < java . lang . String > IDENT_55 = METHOD_22 ( IDENT_27 , IDENT_23 ) ; com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . error ( ( STRING_10 + ( IDENT_55 . toString ( ) ) ) ) ; IDENT_27 . METHOD_23 ( IDENT_55 ) ; break ; } else if ( status == ( com . IDENT_4 . IDENT_5 . IDENT_6 . common . IDENT_10 . IDENT_56 ) ) { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . error ( STRING_6 ) ; break ; } else if ( status == ( com . IDENT_4 . IDENT_5 . IDENT_6 . common . IDENT_10 . IDENT_12 ) ) { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . info ( STRING_8 9 ) ; break ; } else if ( status == ( com . IDENT_4 . IDENT_5 . IDENT_6 . common . IDENT_10 . IDENT_24 ) ) { if ( ( IDENT_44 OP_0 IDENT_48 ) == 0 ) { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . info ( IDENT_23 . METHOD_24 ( ) ) ; } try { java . lang . Thread . sleep ( IDENT_45 ) ; } catch ( java . lang . IDENT_57 e ) { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . error ( STRING_8 5 , e ) ; } } } } catch ( com . IDENT_4 . IDENT_5 . IDENT_6 . common . IDENT_58 e ) { if ( ! ( status . METHOD_25 ( ) ) ) { IDENT_25 = e . getStatusCode ( ) ; status = com . IDENT_4 . IDENT_5 . IDENT_6 . common . IDENT_10 . METHOD_20 ( e . getStatusCode ( ) ) ; if ( status == null ) { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . error ( ( ( STRING_8 0 + IDENT_25 ) + STRING_8 6 ) ) ; return IDENT_10 . IDENT_11 . getStatus ( ) ; } } if ( com . IDENT_4 . IDENT_5 . IDENT_6 . common . IDENT_10 . METHOD_20 ( e . getStatusCode ( ) ) . equals ( IDENT_10 . IDENT_59 ) ) { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . error ( ( STRING_11 + ( e . METHOD_26 ( ) ) ) , e ) ; } else { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . error ( STRING_9 , e ) ; try { IDENT_27 . METHOD_27 ( ) ; IDENT_27 . METHOD_21 ( ) ; } catch ( java . lang . Exception IDENT_60 ) { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . error ( STRING_8 3 , IDENT_60 ) ; } } } catch ( java . lang . IDENT_57 e ) { status = com . IDENT_4 . IDENT_5 . IDENT_6 . common . IDENT_10 . IDENT_11 ; com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . error ( STRING_8 7 , e ) ; } catch ( java . util . concurrent . IDENT_61 e ) { status = com . IDENT_4 . IDENT_5 . IDENT_6 . common . IDENT_10 . IDENT_11 ; com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . error ( STRING_8 , e ) ; } catch ( java . util . concurrent . IDENT_62 e ) { status = com . IDENT_4 . IDENT_5 . IDENT_6 . common . IDENT_10 . IDENT_11 ; com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . error ( STRING_12 , e ) ; } catch ( java . lang . Exception e ) { if ( ! ( status . METHOD_25 ( ) ) ) { status = com . IDENT_4 . IDENT_5 . IDENT_6 . common . IDENT_10 . IDENT_11 ; } com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . error ( STRING_9 , e ) ; com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . error ( STRING_8 4 ) ; try { if ( IDENT_27 != null ) { IDENT_27 . METHOD_27 ( ) ; IDENT_27 . METHOD_21 ( ) ; } } catch ( java . lang . Exception IDENT_60 ) { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . error ( STRING_8 3 , IDENT_60 ) ; } } finally { time = ( new java . util . Date ( ) . getTime ( ) ) - ( now . getTime ( ) ) ; if ( IDENT_23 != null ) { com . IDENT_4 . IDENT_5 . IDENT_6 . engine . monitor . IDENT_63 IDENT_64 = IDENT_23 . METHOD_28 ( source , target , ( time / 1000 ) , status . getStatus ( ) , now ) ; com . IDENT_4 . IDENT_5 . IDENT_6 . common . utils . IDENT_65 . METHOD_29 ( IDENT_64 ) ; } com . IDENT_4 . IDENT_5 . IDENT_6 . engine . core . METHOD_6 . IDENT_9 . info ( IDENT_23 . METHOD_30 ( ) ) ; } if ( IDENT_25 != ( IDENT_10 . IDENT_24 . getStatus ( ) ) ) { return IDENT_25 ; } else { return status . getStatus ( ) ; } }
org . junit . Assert . assertEquals ( 0 , IDENT_21 )