METHOD_0 ( ) { final java . lang . String IDENT_0 = java . util . UUID . METHOD_1 ( ) . toString ( ) ; final java . lang . String IDENT_1 = org . apache . rya . streams . kafka . IDENT_2 . METHOD_2 ( IDENT_0 ) ; final org . apache . rya . streams . api . IDENT_3 . IDENT_4 IDENT_3 = new org . apache . rya . streams . api . IDENT_3 . METHOD_3 ( new org . apache . rya . streams . api . IDENT_3 . METHOD_4 ( ) , com . google . common . util . concurrent . IDENT_5 . IDENT_6 . METHOD_5 ( 0L , 5 , TimeUnit . IDENT_7 ) ) ; final org . apache . rya . streams . api . entity . IDENT_8 IDENT_9 = IDENT_3 . add ( STRING_0 , true , false ) ; final java . util . UUID IDENT_10 = IDENT_9 . METHOD_6 ( ) ; final java . lang . String IDENT_11 = org . apache . rya . streams . kafka . IDENT_2 . METHOD_7 ( IDENT_0 , IDENT_10 ) ; final java . lang . Thread IDENT_12 = new java . lang . Thread ( ) { @ org . apache . rya . streams . kafka . IDENT_13 . Override public void run ( ) { final org . apache . rya . streams . api . IDENT_13 . IDENT_14 METHOD_0 = new org . apache . rya . streams . kafka . IDENT_13 . METHOD_8 ( kafka . METHOD_9 ( ) , kafka . METHOD_10 ( ) , METHOD_2 , IDENT_11 , IDENT_3 , new org . apache . rya . streams . kafka . IDENT_15 . METHOD_11 ( ) ) ; try { METHOD_0 . run ( IDENT_10 ) ; } catch ( final org . apache . rya . streams . api . exception . IDENT_16 e ) { } } } ; kafka . METHOD_12 ( METHOD_2 ) ; kafka . METHOD_12 ( IDENT_11 ) ; final org . eclipse . IDENT_17 . model . IDENT_18 IDENT_19 = org . eclipse . IDENT_17 . model . impl . IDENT_20 . getInstance ( ) ; final java . util . List < org . apache . rya . api . model . IDENT_21 > IDENT_22 = new java . util . ArrayList ( ) ; IDENT_22 . add ( new org . apache . rya . api . model . METHOD_13 ( IDENT_19 . METHOD_14 ( IDENT_19 . METHOD_15 ( STRING_1 ) , IDENT_19 . METHOD_15 ( STRING_2 ) , IDENT_19 . METHOD_15 ( STRING_3 ) ) , "a" ) ) ; IDENT_22 . add ( new org . apache . rya . api . model . METHOD_13 ( IDENT_19 . METHOD_14 ( IDENT_19 . METHOD_15 ( STRING_4 ) , IDENT_19 . METHOD_15 ( STRING_2 ) , IDENT_19 . METHOD_15 ( STRING_5 ) ) , "a" ) ) ; IDENT_22 . add ( new org . apache . rya . api . model . METHOD_13 ( IDENT_19 . METHOD_14 ( IDENT_19 . METHOD_15 ( STRING_6 ) , IDENT_19 . METHOD_15 ( STRING_2 ) , IDENT_19 . METHOD_15 ( STRING_5 ) ) , "a" ) ) ; final java . util . List < org . apache . rya . api . model . IDENT_23 > expected = new java . util . ArrayList ( ) ; org . eclipse . IDENT_17 . query . impl . IDENT_24 IDENT_25 = new org . eclipse . IDENT_17 . query . impl . METHOD_16 ( ) ; IDENT_25 . METHOD_17 ( STRING_7 , IDENT_19 . METHOD_15 ( STRING_1 ) ) ; IDENT_25 . METHOD_17 ( STRING_8 , IDENT_19 . METHOD_15 ( STRING_3 ) ) ; expected . add ( new org . apache . rya . api . model . METHOD_18 ( IDENT_25 , "a" ) ) ; IDENT_25 = new org . eclipse . IDENT_17 . query . impl . METHOD_16 ( ) ; IDENT_25 . METHOD_17 ( STRING_7 , IDENT_19 . METHOD_15 ( STRING_4 ) ) ; IDENT_25 . METHOD_17 ( STRING_8 , IDENT_19 . METHOD_15 ( STRING_5 ) ) ; expected . add ( new org . apache . rya . api . model . METHOD_18 ( IDENT_25 , "a" ) ) ; IDENT_25 = new org . eclipse . IDENT_17 . query . impl . METHOD_16 ( ) ; IDENT_25 . METHOD_17 ( STRING_7 , IDENT_19 . METHOD_15 ( STRING_6 ) ) ; IDENT_25 . METHOD_17 ( STRING_8 , IDENT_19 . METHOD_15 ( STRING_5 ) ) ; expected . add ( new org . apache . rya . api . model . METHOD_18 ( IDENT_25 , "a" ) ) ; final java . util . List < org . apache . rya . api . model . METHOD_18 > results ; try { IDENT_12 . start ( ) ; java . lang . Thread . sleep ( INT_0 ) ; final org . apache . rya . streams . api . IDENT_13 . IDENT_26 IDENT_27 = new org . apache . rya . streams . kafka . IDENT_13 . METHOD_19 ( METHOD_2 , IDENT_28 ) ; IDENT_27 . METHOD_20 ( IDENT_22 ) ; consumer . METHOD_21 ( com . google . common . collect . Lists . newArrayList ( IDENT_11 ) ) ; results = org . apache . rya . test . kafka . IDENT_29 . METHOD_22 ( INT_1 , 6 , 3 , consumer ) ; } finally { IDENT_12 . METHOD_23 ( ) ; IDENT_12 . join ( INT_2 ) ; } "<AssertPlaceHolder>" ; } METHOD_22 ( int , int , int , org . apache . kafka . IDENT_30 . consumer . IDENT_31 ) { METHOD_24 ( consumer ) ; final java . util . List < IDENT_32 > values = new java . util . ArrayList ( ) ; int i = 0 ; while ( ( ( values . size ( ) ) < IDENT_33 ) && ( i < IDENT_34 ) ) { for ( final org . apache . kafka . IDENT_30 . consumer . IDENT_35 < IDENT_36 , IDENT_32 > record : consumer . METHOD_25 ( IDENT_37 ) ) { values . add ( record . value ( ) ) ; } i ++ ; } return values ; }
org . junit . Assert . assertEquals ( expected , results )