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