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