METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( ) ) . thenReturn ( true ) ; doReturn ( null ) . when ( IDENT_1 ) . METHOD_2 ( ) ; boolean result = IDENT_1 . METHOD_3 ( IDENT_0 , IDENT_2 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_1 ) . METHOD_1 ( ) ; } METHOD_3 ( org . pentaho . di . IDENT_3 . IDENT_4 . IDENT_5 , org . pentaho . di . IDENT_3 . IDENT_4 . IDENT_6 ) { meta = ( ( org . pentaho . di . IDENT_3 . IDENT_7 . sql . IDENT_8 ) ( IDENT_9 ) ) ; data = ( ( org . pentaho . di . IDENT_3 . IDENT_7 . sql . IDENT_10 ) ( IDENT_11 ) ) ; if ( ! ( meta . METHOD_4 ( ) ) ) { org . pentaho . di . core . IDENT_12 IDENT_13 = org . pentaho . di . IDENT_3 . IDENT_7 . sql . IDENT_14 . METHOD_5 ( data . result , meta . METHOD_6 ( ) , meta . METHOD_7 ( ) , meta . METHOD_8 ( ) , meta . METHOD_9 ( ) ) ; METHOD_10 ( IDENT_13 . METHOD_11 ( ) , IDENT_13 . METHOD_12 ( ) ) ; METHOD_13 ( ) ; return false ; } java . lang . Object [ ] row = METHOD_2 ( ) ; if ( row == null ) { METHOD_13 ( ) ; return false ; } if ( first ) { first = false ; data . IDENT_15 = METHOD_14 ( ) . METHOD_15 ( ) ; meta . METHOD_16 ( data . IDENT_15 , METHOD_17 ( ) , null , null , this , repository , IDENT_16 ) ; data . IDENT_17 = new int [ meta . METHOD_18 ( ) . length ] ; for ( int i = 0 ; i < ( meta . METHOD_18 ( ) . length ) ; i ++ ) { data . IDENT_17 [ i ] = this . METHOD_14 ( ) . METHOD_19 ( meta . METHOD_18 ( ) [ i ] ) ; if ( ( data . IDENT_17 [ i ] ) < 0 ) { METHOD_20 ( ( ( ( org . pentaho . di . IDENT_18 . IDENT_19 . getString ( org . pentaho . di . IDENT_3 . IDENT_7 . sql . IDENT_14 . IDENT_20 , STRING_0 ) ) + ( meta . METHOD_18 ( ) [ i ] ) ) + "]" ) ) ; throw new org . pentaho . di . core . exception . METHOD_21 ( org . pentaho . di . IDENT_18 . IDENT_19 . getString ( org . pentaho . di . IDENT_3 . IDENT_7 . sql . IDENT_14 . IDENT_20 , STRING_1 , meta . METHOD_18 ( ) [ i ] ) ) ; } if ( meta . METHOD_22 ( ) ) { if ( i == 0 ) { data . IDENT_21 = new org . pentaho . di . core . row . METHOD_23 ( ) ; } data . IDENT_21 . METHOD_24 ( METHOD_14 ( ) . METHOD_25 ( data . IDENT_17 [ i ] ) ) ; } } if ( ! ( meta . METHOD_22 ( ) ) ) { data . IDENT_22 = new java . util . ArrayList < java . lang . Integer > ( ) ; int len = data . sql . length ( ) ; int pos = len - 1 ; while ( pos >= 0 ) { if ( ( data . sql . charAt ( pos ) ) == STRING_2 ) { data . IDENT_22 . add ( java . lang . Integer . valueOf ( pos ) ) ; } pos OP_0 ; } } } java . lang . String sql ; java . lang . Object [ ] IDENT_23 = null ; if ( meta . METHOD_22 ( ) ) { IDENT_23 = new java . lang . Object [ data . IDENT_17 . length ] ; sql = this . data . sql ; for ( int i = 0 ; i < ( this . data . IDENT_17 . length ) ; i ++ ) { IDENT_23 [ i ] = row [ data . IDENT_17 [ i ] ] ; } } else { int IDENT_24 = data . IDENT_22 . size ( ) ; if ( IDENT_24 > 0 ) { java . lang . StringBuilder buf = new java . lang . StringBuilder ( data . sql ) ; for ( int i = 0 ; i < IDENT_24 ; i ++ ) { int index = data . IDENT_17 [ ( ( ( data . IDENT_22 . size ( ) ) - i ) - 1 ) ] ; org . pentaho . di . core . row . IDENT_25 IDENT_26 = METHOD_14 ( ) . METHOD_25 ( index ) ; java . lang . Object IDENT_27 = row [ index ] ; int pos = data . IDENT_22 . get ( i ) ; java . lang . String IDENT_28 = IDENT_26 . getString ( IDENT_27 ) ; IDENT_28 = org . pentaho . di . core . IDENT_29 . METHOD_26 ( IDENT_28 , "" ) ; if ( ( meta . METHOD_27 ( ) ) && ( ( IDENT_26 . getType ( ) ) == ( org . pentaho . di . core . row . IDENT_25 . IDENT_30 ) ) ) { IDENT_28 = meta . METHOD_28 ( ) . METHOD_29 ( IDENT_28 ) ; } buf . replace ( pos , ( pos + 1 ) , IDENT_28 ) ; } sql = buf . toString ( ) ; } else { sql = data . sql ; } } if ( log . METHOD_30 ( ) ) { METHOD_31 ( ( ( ( org . pentaho . di . IDENT_18 . IDENT_19 . getString ( org . pentaho . di . IDENT_3 . IDENT_7 . sql . IDENT_14 . IDENT_20 , STRING_3 ) ) + ( org . pentaho . di . core . IDENT_29 . IDENT_31 ) ) + sql ) ) ; } boolean IDENT_32 = false ; java . lang . String IDENT_33 = null ; try { if ( meta . METHOD_32 ( ) ) { data . result = data . db . METHOD_33 ( sql , data . IDENT_21 , IDENT_23 ) ; } else { data . result = data . db . METHOD_34 ( sql , data . IDENT_21 , IDENT_23 ) ; } org . pentaho . di . core . IDENT_12 add = org . pentaho . di . IDENT_3 . IDENT_7 . sql . IDENT_14 . METHOD_5 ( data . result , meta . METHOD_6 ( ) , meta . METHOD_7 ( ) , meta . METHOD_8 ( ) , meta . METHOD_9 ( ) ) ; row = org . pentaho . di . core . row . IDENT_34 . METHOD_35 ( row , METHOD_14 ( ) . size ( ) , add . METHOD_12 ( ) ) ; if ( ! ( data . db . METHOD_36 ( ) ) ) { data . db . commit ( ) ; } METHOD_10 ( data . IDENT_15 , row ) ; if ( METHOD_37 ( METHOD_38 ( ) ) ) { if ( log . METHOD_39 ( ) ) { METHOD_40 ( ( ( org . pentaho . di . IDENT_18 . IDENT_19 . getString ( org . pentaho . di . IDENT_3 . IDENT_7 . sql . IDENT_14 . IDENT_20 , STRING_4 ) ) + ( METHOD_38 ( ) ) ) ) ; } } } catch ( org . pentaho . di . core . exception . IDENT_35 e ) { if ( METHOD_41 ( ) . METHOD_42 ( ) ) { IDENT_32 = true ; IDENT_33 = e . toString ( ) ; } else { throw new org . pentaho . di . core . exception . METHOD_21 ( org . pentaho . di . IDENT_18 . IDENT_19 . getString ( org . pentaho . di . IDENT_3 . IDENT_7 . sql . IDENT_14 . IDENT_20 , STRING_5 ) , e ) ; } if ( IDENT_32 ) { METHOD_43 ( METHOD_14 ( ) , row , 1 , IDENT_33 , null , STRING_6 ) ; } } return true ; }
org . junit . Assert . assertFalse ( result )