METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 IDENT_4 = new com . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_1 ( ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_5 IDENT_6 = new com . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_2 ( ) ; IDENT_6 . METHOD_3 ( new com . IDENT_0 . IDENT_1 . METHOD_4 ( "test" , STRING_0 ) ) ; IDENT_6 . METHOD_5 ( new com . IDENT_0 . IDENT_1 . IDENT_7 . METHOD_6 ( java . util . Arrays . asList ( STRING_1 ) ) ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_8 IDENT_9 = new com . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_7 ( ) ; IDENT_9 . METHOD_3 ( new com . IDENT_0 . IDENT_1 . METHOD_4 ( "test" , STRING_0 ) ) ; IDENT_9 . METHOD_8 ( METHOD_9 ( STRING_2 0 ) ) ; IDENT_9 . METHOD_10 ( null ) ; IDENT_9 . METHOD_5 ( new com . IDENT_0 . IDENT_1 . IDENT_7 . METHOD_6 ( java . util . Arrays . asList ( STRING_2 1 , STRING_3 ) ) ) ; IDENT_4 . add ( IDENT_6 ) ; IDENT_4 . add ( IDENT_6 ) ; IDENT_4 . add ( IDENT_6 ) ; IDENT_4 . add ( IDENT_9 ) ; IDENT_4 . add ( IDENT_6 ) ; IDENT_4 . add ( IDENT_6 ) ; IDENT_4 . add ( IDENT_9 ) ; com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . IDENT_11 IDENT_12 = new com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . METHOD_11 ( ) ; com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . IDENT_13 IDENT_14 = new com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . METHOD_12 ( ) ; ( ( com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . IDENT_15 ) ( IDENT_7 ) ) . IDENT_12 = IDENT_12 ; ( ( com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . IDENT_15 ) ( IDENT_7 ) ) . IDENT_14 = IDENT_14 ; com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . IDENT_16 validator = new com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . METHOD_13 ( IDENT_12 , IDENT_14 ) { @ com . IDENT_0 . IDENT_1 . IDENT_7 . Override public void run ( ) { try { com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . LOGGER . debug ( STRING_4 ) ; while ( ( find . IDENT_17 . get ( ) ) < 3 ) { java . lang . Thread . sleep ( 1 ) ; } com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . LOGGER . debug ( STRING_2 3 ) ; find . IDENT_18 . METHOD_14 ( 3 ) ; com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . LOGGER . debug ( STRING_2 2 ) ; while ( ( find . IDENT_18 . METHOD_15 ( ) ) > 0 ) { java . lang . Thread . sleep ( 1 ) ; } com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . LOGGER . debug ( STRING_2 ) ; insert . IDENT_18 . METHOD_14 ( 1 ) ; while ( ( insert . IDENT_18 . METHOD_15 ( ) ) > 0 ) { java . lang . Thread . sleep ( 1 ) ; } com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . LOGGER . debug ( STRING_5 ) ; while ( ( find . IDENT_17 . get ( ) ) < 2 ) { java . lang . Thread . sleep ( 1 ) ; } com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . LOGGER . debug ( STRING_6 ) ; find . IDENT_18 . METHOD_14 ( 2 ) ; while ( ( find . IDENT_18 . METHOD_15 ( ) ) > 0 ) { java . lang . Thread . sleep ( 1 ) ; } insert . IDENT_18 . METHOD_14 ( 1 ) ; while ( ( insert . IDENT_18 . METHOD_15 ( ) ) > 0 ) { java . lang . Thread . sleep ( 1 ) ; } com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . LOGGER . debug ( STRING_2 4 ) ; IDENT_19 = true ; } catch ( java . lang . Exception e ) { throw new java . lang . RuntimeException ( e ) ; } } } ; validator . start ( ) ; com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . LOGGER . debug ( STRING_7 ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_20 IDENT_21 = IDENT_7 . METHOD_16 ( IDENT_4 , IDENT_22 ) ; validator . join ( ) ; com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_10 . LOGGER . debug ( STRING_8 ) ; "<AssertPlaceHolder>" ; } METHOD_16 ( com . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_1 , com . IDENT_0 . IDENT_1 . util . metrics . IDENT_23 ) { com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_24 . LOGGER . debug ( STRING_9 ) ; com . IDENT_0 . IDENT_1 . util . IDENT_25 . METHOD_17 ( STRING_10 ) ; java . util . concurrent . IDENT_26 executor = java . util . concurrent . IDENT_27 . METHOD_18 ( factory . METHOD_19 ( ) ) ; try { com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_24 . LOGGER . debug ( STRING_11 , factory . METHOD_19 ( ) , IDENT_28 . METHOD_20 ( ) ) ; java . util . List < com . IDENT_0 . IDENT_1 . IDENT_29 > IDENT_30 = IDENT_28 . METHOD_21 ( ) ; int n = IDENT_30 . size ( ) ; com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_31 ctx = new com . IDENT_0 . IDENT_1 . IDENT_7 . METHOD_22 ( n ) ; ctx . METHOD_23 ( factory . METHOD_24 ( ) , factory . METHOD_25 ( ) , IDENT_28 ) ; for ( int i = 0 ; i < n ; i ++ ) { com . IDENT_0 . IDENT_1 . Response IDENT_32 = null ; com . IDENT_0 . IDENT_1 . IDENT_29 req = IDENT_30 . get ( i ) ; if ( IDENT_28 . METHOD_20 ( ) ) { if ( ( req . METHOD_26 ( ) ) == ( com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_33 . IDENT_34 ) ) { ctx . IDENT_35 [ i ] = executor . METHOD_27 ( METHOD_28 ( req , metrics ) ) ; } else { METHOD_29 ( ctx ) ; com . IDENT_0 . IDENT_1 . util . metrics . IDENT_23 . Context IDENT_36 = metrics . METHOD_30 ( req . METHOD_26 ( ) . toString ( ) . toLowerCase ( ) , req . METHOD_31 ( ) . METHOD_32 ( ) , req . METHOD_31 ( ) . METHOD_33 ( ) ) ; switch ( req . METHOD_26 ( ) ) { case IDENT_37 : IDENT_32 = insert ( ( ( com . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_7 ) ( req ) ) ) ; ctx . METHOD_34 ( i , IDENT_32 ) ; break ; case IDENT_38 : IDENT_32 = delete ( ( ( com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_39 ) ( req ) ) ) ; ctx . METHOD_34 ( i , IDENT_32 ) ; break ; case IDENT_40 : IDENT_32 = update ( ( ( com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_41 ) ( req ) ) ) ; ctx . METHOD_34 ( i , IDENT_32 ) ; break ; case IDENT_42 : IDENT_32 = save ( ( ( com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_43 ) ( req ) ) ) ; ctx . METHOD_34 ( i , IDENT_32 ) ; break ; } IDENT_36 . METHOD_35 ( IDENT_32 . METHOD_36 ( ) ) ; } } else { com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_24 . LOGGER . debug ( STRING_12 ) ; ctx . IDENT_35 [ i ] = executor . METHOD_27 ( METHOD_28 ( req , metrics ) ) ; } } METHOD_29 ( ctx ) ; com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_24 . LOGGER . debug ( STRING_13 ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_20 response = new com . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_37 ( ) ; response . METHOD_38 ( ctx . METHOD_39 ( ) ) ; com . IDENT_0 . IDENT_1 . util . IDENT_25 . METHOD_40 ( ) ; return response ; } finally { executor . METHOD_41 ( ) ; } }
org . junit . Assert . assertTrue ( validator . IDENT_19 )