METHOD_0 ( ) { try { final int IDENT_0 = INT_0 ; java . util . List < java . lang . Integer > data = new java . util . ArrayList < java . lang . Integer > ( IDENT_0 ) ; java . util . List < java . lang . Integer > result = new java . util . ArrayList < java . lang . Integer > ( IDENT_0 ) ; for ( int i = 0 ; i < IDENT_0 ; i ++ ) { data . add ( i ) ; } final org . apache . flink . streaming . api . IDENT_1 . source . IDENT_2 < java . lang . Integer > source = new org . apache . flink . streaming . api . IDENT_1 . source . METHOD_1 ( org . apache . flink . api . common . IDENT_3 . base . IDENT_4 . INSTANCE , data ) ; org . apache . flink . streaming . api . IDENT_5 . IDENT_6 < java . lang . Integer , org . apache . flink . streaming . api . IDENT_1 . source . METHOD_1 < java . lang . Integer > > IDENT_7 = new org . apache . flink . streaming . api . IDENT_5 . METHOD_2 ( source ) ; org . apache . flink . streaming . util . IDENT_8 < java . lang . Integer > IDENT_9 = new org . apache . flink . streaming . util . METHOD_3 ( IDENT_7 , 1 , 1 , 0 ) ; IDENT_9 . METHOD_4 ( ) ; final org . apache . flink . streaming . api . IDENT_1 . source . IDENT_10 . IDENT_11 < java . lang . Integer > ctx = new org . apache . flink . streaming . api . IDENT_1 . IDENT_12 < java . lang . Integer > ( result , INT_1 ) ; final java . lang . Throwable [ ] error = new java . lang . Throwable [ 1 ] ; java . lang . Thread runner = new java . lang . Thread ( ) { @ org . apache . flink . streaming . api . IDENT_1 . Override public void run ( ) { try { source . run ( ctx ) ; } catch ( java . lang . Throwable t ) { error [ 0 ] = t ; } } } ; runner . start ( ) ; java . lang . Thread . sleep ( 1000 ) ; java . util . List < java . lang . Integer > IDENT_13 = new java . util . ArrayList ( IDENT_0 ) ; org . apache . flink . runtime . IDENT_14 . IDENT_15 IDENT_16 = null ; MOD_0 ( ctx . METHOD_5 ( ) ) { IDENT_16 = IDENT_9 . METHOD_6 ( INT_2 , java . lang . System . currentTimeMillis ( ) ) ; IDENT_13 . addAll ( result ) ; } source . METHOD_7 ( ) ; runner . join ( ) ; if ( ( error [ 0 ] ) != null ) { System . err . println ( STRING_0 ) ; error [ 0 ] . printStackTrace ( ) ; org . junit . Assert . fail ( STRING_0 ) ; } final org . apache . flink . streaming . api . IDENT_1 . source . METHOD_1 < java . lang . Integer > IDENT_17 = new org . apache . flink . streaming . api . IDENT_1 . source . METHOD_1 ( org . apache . flink . api . common . IDENT_3 . base . IDENT_4 . INSTANCE , data ) ; org . apache . flink . streaming . api . IDENT_5 . METHOD_2 < java . lang . Integer , org . apache . flink . streaming . api . IDENT_1 . source . METHOD_1 < java . lang . Integer > > IDENT_18 = new org . apache . flink . streaming . api . IDENT_5 . METHOD_2 ( IDENT_17 ) ; org . apache . flink . streaming . util . METHOD_3 < java . lang . Integer > IDENT_19 = new org . apache . flink . streaming . util . METHOD_3 ( IDENT_18 , 1 , 1 , 0 ) ; IDENT_19 . METHOD_8 ( ) ; IDENT_19 . METHOD_9 ( IDENT_16 ) ; IDENT_19 . METHOD_4 ( ) ; org . apache . flink . streaming . api . IDENT_1 . source . IDENT_10 . IDENT_11 < java . lang . Integer > IDENT_20 = new org . apache . flink . streaming . api . IDENT_1 . METHOD_10 ( IDENT_13 ) ; IDENT_17 . run ( IDENT_20 ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( e . getMessage ( ) ) ; } } run ( org . apache . flink . streaming . util . IDENT_11 ) { METHOD_11 ( ctx , 2 ) ; METHOD_11 ( ctx , 2 ) ; }
org . junit . Assert . assertEquals ( data , IDENT_13 )