METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; java . lang . String IDENT_1 = STRING_1 ; java . lang . String IDENT_2 = STRING_0 3 ; java . lang . String IDENT_3 = STRING_2 ; java . lang . String IDENT_4 = ( ( ( STRING_0 2 + IDENT_2 ) + STRING_0 0 ) + IDENT_3 ) + STRING_0 4 ; java . lang . String IDENT_5 = ( ( ( ( IDENT_4 + STRING_3 ) + IDENT_0 ) + STRING_0 5 ) + IDENT_1 ) + STRING_4 ; java . lang . String order = STRING_5 ; java . lang . String sql = IDENT_6 . METHOD_1 ( STRING_6 , null , IDENT_5 , null , ( ( ( order + STRING_0 1 ) + order ) + STRING_7 ) , STRING_8 , null ) ; java . lang . String IDENT_7 = STRING_9 ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . sql . IDENT_8 ) { IDENT_9 . IDENT_10 . results . IDENT_11 . IDENT_12 . validate ( view ) ; java . lang . StringBuilder buf = new java . lang . StringBuilder ( ) ; if ( org . apache . commons . lang . StringUtils . isEmpty ( org . apache . commons . lang . StringUtils . METHOD_2 ( fields ) ) ) fields = STRING_10 ; if ( org . apache . commons . lang . StringUtils . isEmpty ( org . apache . commons . lang . StringUtils . METHOD_2 ( IDENT_5 ) ) ) IDENT_5 = null ; if ( org . apache . commons . lang . StringUtils . isEmpty ( org . apache . commons . lang . StringUtils . METHOD_2 ( order ) ) ) order = null ; if ( org . apache . commons . lang . StringUtils . isEmpty ( org . apache . commons . lang . StringUtils . METHOD_2 ( IDENT_13 ) ) ) IDENT_13 = null ; if ( null == ( this . IDENT_14 ) ) this . IDENT_14 = this . METHOD_3 ( connection , view ) ; if ( ! ( fields . equals ( STRING_10 ) ) ) { java . util . IDENT_15 < java . lang . String > IDENT_16 = new java . util . METHOD_4 ( ) ; java . lang . String [ ] result = IDENT_9 . IDENT_10 . results . IDENT_11 . IDENT_17 . METHOD_5 ( fields , STRING_11 ) ; java . util . METHOD_4 < java . lang . String > IDENT_18 = new java . util . METHOD_4 ( ) ; for ( java . lang . String s : result ) { s = s . replace ( STRING_12 , "" ) . trim ( ) ; s = METHOD_6 ( s ) ; IDENT_18 . add ( s ) ; } if ( ( IDENT_18 . contains ( STRING_10 ) ) == true ) { IDENT_18 . remove ( STRING_10 ) ; IDENT_16 . add ( STRING_10 ) ; } else { IDENT_16 . addAll ( IDENT_9 . IDENT_10 . query . IDENT_19 . IDENT_20 . METHOD_7 ( ) ) ; } IDENT_16 . addAll ( IDENT_18 ) ; fields = org . apache . commons . lang . StringUtils . join ( IDENT_16 , STRING_13 4 ) ; } if ( null != IDENT_5 ) { java . lang . StringBuilder IDENT_21 = new java . lang . StringBuilder ( ) ; java . lang . String [ ] IDENT_22 = IDENT_5 . split ( " " ) ; for ( java . lang . String s : IDENT_22 ) { java . lang . String field = s . replace ( STRING_12 , "" ) . trim ( ) ; if ( ( IDENT_23 . contains ( field ) ) || ( METHOD_8 ( field ) ) ) { IDENT_21 . append ( METHOD_6 ( field ) ) . append ( IDENT_9 . IDENT_10 . results . IDENT_11 . IDENT_17 . IDENT_24 ) ; } else { IDENT_21 . append ( s ) . append ( IDENT_9 . IDENT_10 . results . IDENT_11 . IDENT_17 . IDENT_24 ) ; } } if ( IDENT_21 . toString ( ) . trim ( ) . isEmpty ( ) ) { IDENT_5 = null ; } else { IDENT_5 = IDENT_21 . toString ( ) . trim ( ) ; } } order = METHOD_9 ( order ) ; if ( null != IDENT_13 ) { java . util . List < java . lang . String > IDENT_25 = new java . util . ArrayList ( ) ; java . lang . String [ ] IDENT_26 = IDENT_13 . split ( STRING_13 4 ) ; for ( java . lang . String s : IDENT_26 ) { s = s . replace ( STRING_12 , "" ) . trim ( ) ; IDENT_25 . add ( METHOD_6 ( s ) ) ; } if ( IDENT_25 . isEmpty ( ) ) { IDENT_13 = null ; } else { IDENT_13 = org . apache . commons . lang . StringUtils . join ( IDENT_25 , STRING_13 4 ) ; } } if ( ( IDENT_5 == null ) || ( IDENT_5 . isEmpty ( ) ) ) { IDENT_5 = ( STRING_13 3 + user ) + STRING_14 ; } else { IDENT_5 = ( ( ( STRING_13 3 + user ) + STRING_13 ) + IDENT_5 ) + STRING_15 ; } buf . append ( STRING_13 2 ) . append ( fields ) . append ( STRING_13 5 ) . append ( view ) ; if ( null != IDENT_5 ) buf . append ( STRING_16 ) . append ( IDENT_5 ) ; if ( null != IDENT_13 ) buf . append ( STRING_17 ) . append ( IDENT_13 ) ; if ( null != order ) buf . append ( STRING_13 0 ) . append ( order ) ; if ( IDENT_9 . IDENT_10 . results . IDENT_11 . IDENT_17 . log . METHOD_10 ( ) ) { IDENT_9 . IDENT_10 . results . IDENT_11 . IDENT_17 . log . trace ( ( STRING_13 1 + buf ) ) ; } if ( ( IDENT_9 . IDENT_10 . results . IDENT_11 . IDENT_17 . METHOD_11 ( buf . toString ( ) ) ) == false ) { throw new java . lang . IllegalArgumentException ( STRING_18 ) ; } return buf . toString ( ) ; }
org . junit . Assert . assertEquals ( IDENT_7 , sql )