METHOD_0 ( ) { java . lang . String sql = STRING_0 ; javax . jcr . query . Query query = session . METHOD_1 ( ) . METHOD_2 ( ) . METHOD_3 ( sql , Query . IDENT_0 ) ; final java . util . List < java . lang . String > actual = new java . util . ArrayList < java . lang . String > ( ) ; METHOD_4 ( ) . METHOD_5 ( new org . IDENT_1 . jcr . IDENT_2 . METHOD_6 ( ) { @ org . IDENT_1 . jcr . Override public void validate ( int IDENT_3 , javax . jcr . query . IDENT_4 row ) throws javax . jcr . IDENT_5 { actual . add ( row . METHOD_7 ( ) . METHOD_8 ( ) ) ; } } ) . validate ( query , query . execute ( ) ) ; sql = STRING_1 ; query = session . METHOD_1 ( ) . METHOD_2 ( ) . METHOD_3 ( sql , Query . IDENT_0 ) ; final java . util . List < java . lang . String > expected = new java . util . ArrayList < java . lang . String > ( ) ; METHOD_4 ( ) . METHOD_9 ( actual . size ( ) ) . METHOD_5 ( new org . IDENT_1 . jcr . IDENT_2 . METHOD_6 ( ) { @ org . IDENT_1 . jcr . Override public void validate ( int IDENT_3 , javax . jcr . query . IDENT_4 row ) throws javax . jcr . IDENT_5 { expected . add ( row . METHOD_7 ( ) . METHOD_8 ( ) ) ; } } ) . validate ( query , query . execute ( ) ) ; "<AssertPlaceHolder>" ; } execute ( ) { context . METHOD_10 ( ) ; final long start = java . lang . System . METHOD_11 ( ) ; org . IDENT_1 . jcr . query . IDENT_6 IDENT_7 = context . METHOD_12 ( query , IDENT_8 , IDENT_9 ) ; org . IDENT_1 . jcr . query . IDENT_6 IDENT_10 = IDENT_11 . METHOD_13 ( IDENT_7 ) ; if ( IDENT_10 == null ) { IDENT_10 = IDENT_7 ; } final org . IDENT_1 . jcr . query . IDENT_12 result = IDENT_10 . execute ( ) ; IDENT_11 . METHOD_14 ( IDENT_10 , null ) ; METHOD_15 ( result . METHOD_16 ( ) ) ; context . METHOD_17 ( java . lang . Math . METHOD_18 ( ( ( java . lang . System . METHOD_11 ( ) ) - start ) ) , TimeUnit . IDENT_13 , statement , IDENT_14 ) ; if ( Query . IDENT_15 . equals ( IDENT_14 ) ) { return new org . IDENT_1 . jcr . query . METHOD_19 ( context , statement , result , IDENT_8 . IDENT_16 , IDENT_8 . IDENT_17 ) ; } else if ( Query . IDENT_18 . equals ( IDENT_14 ) ) { return new org . IDENT_1 . jcr . query . METHOD_20 ( context , statement , result , IDENT_8 . IDENT_16 , IDENT_8 . IDENT_17 ) ; } return new org . IDENT_1 . jcr . query . METHOD_21 ( context , statement , result , IDENT_8 . IDENT_16 , IDENT_8 . IDENT_17 ) ; }
org . junit . Assert . assertEquals ( expected , actual )