METHOD_0 ( ) { int IDENT_0 = 0 ; when ( IDENT_1 . METHOD_1 ( ) ) . thenReturn ( IDENT_0 ) ; when ( IDENT_1 . METHOD_2 ( ) ) . thenReturn ( true ) ; org . pentaho . platform . plugin . services . IDENT_2 . sql . IDENT_3 IDENT_4 = new org . pentaho . platform . plugin . services . IDENT_2 . sql . METHOD_3 ( IDENT_1 , IDENT_5 ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( ) { if ( ! ( METHOD_5 ( ) ) ) { return - 1 ; } if ( ( IDENT_0 ) != ( org . pentaho . platform . plugin . services . IDENT_2 . sql . METHOD_3 . IDENT_6 ) ) { return IDENT_0 ; } if ( ( IDENT_1 ) == null ) { return 0 ; } try { int IDENT_7 = IDENT_1 . METHOD_1 ( ) ; try { if ( IDENT_1 . METHOD_2 ( ) ) { IDENT_0 = IDENT_1 . METHOD_1 ( ) ; if ( ( IDENT_0 ) <= 0 ) { IDENT_0 = 0 ; } } else { IDENT_0 = 0 ; } } finally { if ( IDENT_7 == 0 ) { IDENT_1 . METHOD_6 ( ) ; } else { IDENT_1 . METHOD_7 ( IDENT_7 ) ; } } } catch ( java . sql . IDENT_8 IDENT_9 ) { org . pentaho . platform . plugin . services . IDENT_2 . sql . METHOD_3 . log . error ( org . pentaho . platform . plugin . services . messages . IDENT_10 . getInstance ( ) . METHOD_8 ( STRING_0 ) , IDENT_9 ) ; IDENT_0 = 0 ; } return IDENT_0 ; }
org . junit . Assert . assertEquals ( IDENT_0 , IDENT_4 . METHOD_4 ( ) )