METHOD_0 ( ) { org . IDENT_0 . metadata . IDENT_1 . persistence . IDENT_2 . LOG . info ( STRING_0 ) ; METHOD_1 ( IDENT_3 . IDENT_4 ) ; org . junit . IDENT_5 . METHOD_2 ( store ) ; org . IDENT_0 . metadata . IDENT_1 . persistence . IDENT_6 . METHOD_3 ( store , IDENT_3 . IDENT_7 , IDENT_3 . IDENT_8 ) ; org . IDENT_0 . filter . expression . IDENT_9 < org . IDENT_0 . commons . IDENT_10 . IDENT_11 . IDENT_12 > IDENT_13 = new org . IDENT_0 . filter . expression . IDENT_9 < org . IDENT_0 . commons . IDENT_10 . IDENT_11 . IDENT_12 > ( STRING_1 ) ; org . IDENT_0 . filter . IDENT_14 op = new org . IDENT_0 . filter . IDENT_15 . METHOD_4 ( new org . IDENT_0 . filter . expression . METHOD_5 ( STRING_2 , IDENT_16 ) , IDENT_13 , true , null ) ; org . IDENT_0 . filter . IDENT_17 filter = new org . IDENT_0 . filter . METHOD_6 ( op ) ; org . IDENT_0 . metadata . persistence . IDENT_18 query = new org . IDENT_0 . metadata . persistence . METHOD_7 ( null , null , filter , null , 1 , 10 ) ; int IDENT_19 = store . METHOD_8 ( query ) ; "<AssertPlaceHolder>" ; } METHOD_8 ( org . IDENT_0 . metadata . persistence . METHOD_7 ) { java . sql . IDENT_20 stmt = null ; java . sql . ResultSet rs = null ; org . IDENT_0 . db . IDENT_21 IDENT_22 = IDENT_23 . getResource ( org . IDENT_0 . db . IDENT_24 . class , IDENT_25 ) ; java . sql . IDENT_26 conn = METHOD_9 ( true ) ; try { org . IDENT_0 . metadata . persistence . IDENT_27 . IDENT_28 . mapping . IDENT_29 IDENT_30 = new org . IDENT_0 . metadata . persistence . IDENT_27 . IDENT_28 . mapping . METHOD_10 ( query . METHOD_11 ( ) , IDENT_31 ) ; if ( ( query . METHOD_12 ( ) ) instanceof org . IDENT_0 . filter . IDENT_32 ) { throw new org . IDENT_0 . protocol . IDENT_33 . METHOD_13 ( STRING_3 ) ; } org . IDENT_0 . IDENT_34 . filter . IDENT_35 IDENT_36 = new org . IDENT_0 . IDENT_34 . IDENT_37 . METHOD_14 ( null , IDENT_30 , ( ( org . IDENT_0 . filter . METHOD_6 ) ( query . METHOD_12 ( ) ) ) , query . METHOD_15 ( ) , false , IDENT_31 ) ; org . IDENT_0 . metadata . IDENT_27 . IDENT_38 IDENT_39 = IDENT_30 . METHOD_16 ( query . METHOD_17 ( ) ) ; java . lang . StringBuilder sql = new java . lang . StringBuilder ( STRING_4 ) ; sql . append ( IDENT_30 . METHOD_18 ( IDENT_39 ) ) ; sql . append ( STRING_5 ) ; sql . append ( IDENT_30 . METHOD_19 ( IDENT_39 ) ) ; sql . append ( STRING_6 ) ; sql . append ( IDENT_30 . METHOD_18 ( IDENT_39 ) ) ; boolean first = true ; for ( org . IDENT_0 . metadata . IDENT_27 . IDENT_38 IDENT_40 : IDENT_30 . METHOD_20 ( ) ) { if ( IDENT_40 != IDENT_39 ) { if ( first ) { sql . append ( STRING_7 ) ; } else { sql . append ( STRING_8 ) ; } sql . append ( IDENT_30 . METHOD_19 ( IDENT_40 ) . name ( ) ) ; sql . append ( STRING_6 ) ; sql . append ( IDENT_30 . METHOD_18 ( IDENT_40 ) ) ; sql . append ( STRING_9 ) ; first = false ; } } for ( org . IDENT_0 . IDENT_34 . filter . IDENT_41 IDENT_42 : IDENT_30 . METHOD_21 ( ) ) { if ( first ) { sql . append ( STRING_7 ) ; } else { sql . append ( STRING_8 ) ; } sql . append ( IDENT_42 . METHOD_22 ( ) ) ; sql . append ( STRING_6 ) ; sql . append ( IDENT_42 . METHOD_23 ( ) ) ; sql . append ( STRING_10 ) ; sql . append ( IDENT_42 . METHOD_24 ( ) ) ; first = false ; } if ( ( IDENT_36 . METHOD_25 ( ) ) != null ) { sql . append ( STRING_11 ) . append ( IDENT_36 . METHOD_25 ( ) . METHOD_26 ( ) ) ; } stmt = conn . METHOD_27 ( sql . toString ( ) ) ; int i = 1 ; if ( ( IDENT_36 . METHOD_25 ( ) ) != null ) { for ( org . IDENT_0 . IDENT_34 . filter . expression . IDENT_43 IDENT_44 : IDENT_36 . METHOD_25 ( ) . METHOD_28 ( ) ) { IDENT_44 . METHOD_29 ( stmt , ( i ++ ) ) ; } } org . IDENT_0 . metadata . persistence . IDENT_27 . IDENT_28 . IDENT_45 . LOG . debug ( ( STRING_12 + ( stmt . toString ( ) ) ) ) ; rs = METHOD_30 ( stmt , IDENT_22 , IDENT_46 ) ; rs . next ( ) ; return rs . METHOD_31 ( 1 ) ; } catch ( java . lang . Throwable t ) { org . IDENT_0 . commons . utils . IDENT_47 . close ( rs , stmt , conn , org . IDENT_0 . metadata . persistence . IDENT_27 . IDENT_28 . IDENT_45 . LOG ) ; org . IDENT_0 . metadata . persistence . IDENT_27 . IDENT_28 . IDENT_45 . LOG . debug ( t . getMessage ( ) , t ) ; throw new org . IDENT_0 . protocol . IDENT_33 . METHOD_13 ( t . getMessage ( ) , t ) ; } finally { org . IDENT_0 . commons . utils . IDENT_47 . close ( rs , stmt , conn , org . IDENT_0 . metadata . persistence . IDENT_27 . IDENT_28 . IDENT_45 . LOG ) ; } }
org . junit . Assert . assertEquals ( 1 , IDENT_19 )