METHOD_0 ( ) { java . io . File IDENT_0 = new java . io . File ( io . cdap . plugin . batch . source . IDENT_1 . IDENT_2 . METHOD_1 ( ) , STRING_0 ) ; java . lang . String IDENT_3 = STRING_1 ; java . lang . String IDENT_4 = STRING_2 ; io . cdap . cdap . test . IDENT_5 IDENT_6 = METHOD_2 ( IDENT_4 , IDENT_0 , STRING_3 , IDENT_3 , io . cdap . plugin . batch . source . IDENT_1 . IDENT_7 ) ; org . apache . avro . Schema IDENT_8 = new org . apache . avro . Schema . METHOD_3 ( ) . parse ( io . cdap . plugin . batch . source . IDENT_1 . IDENT_7 . toString ( ) ) ; org . apache . avro . IDENT_9 . IDENT_10 record = new org . apache . avro . IDENT_9 . METHOD_4 ( IDENT_8 ) . set ( STRING_4 , Integer . MAX_VALUE ) . set ( STRING_5 , Long . MAX_VALUE ) . set ( STRING_6 , IDENT_0 . getAbsolutePath ( ) ) . build ( ) ; io . cdap . cdap . test . IDENT_11 < io . cdap . cdap . api . dataset . lib . IDENT_12 > IDENT_13 = METHOD_5 ( STRING_7 ) ; org . apache . avro . io . IDENT_14 < org . apache . avro . IDENT_9 . IDENT_10 > IDENT_15 = new org . apache . avro . IDENT_9 . METHOD_6 ( IDENT_8 ) ; org . apache . avro . file . IDENT_16 < org . apache . avro . IDENT_9 . IDENT_10 > IDENT_17 = new org . apache . avro . file . METHOD_7 ( IDENT_15 ) ; IDENT_17 . create ( IDENT_8 , IDENT_0 ) ; IDENT_17 . append ( record ) ; IDENT_17 . close ( ) ; IDENT_13 . METHOD_8 ( ) ; IDENT_6 . METHOD_9 ( IDENT_18 . IDENT_19 ) . METHOD_10 ( IDENT_20 . IDENT_21 , 5 , TimeUnit . IDENT_22 ) ; java . util . List < io . cdap . cdap . api . data . format . IDENT_23 > expected = com . google . common . collect . ImmutableList . of ( io . cdap . cdap . api . data . format . IDENT_23 . builder ( io . cdap . plugin . batch . source . IDENT_1 . IDENT_7 ) . set ( STRING_4 , Integer . MAX_VALUE ) . set ( STRING_5 , Long . MAX_VALUE ) . set ( STRING_6 , IDENT_0 . METHOD_11 ( ) . toString ( ) ) . build ( ) ) ; io . cdap . cdap . test . IDENT_11 < io . cdap . cdap . api . dataset . table . IDENT_24 > IDENT_25 = METHOD_5 ( IDENT_3 ) ; java . util . List < io . cdap . cdap . api . data . format . IDENT_23 > output = io . cdap . cdap . IDENT_26 . mock . batch . IDENT_27 . METHOD_12 ( IDENT_25 ) ; "<AssertPlaceHolder>" ; } METHOD_12 ( org . apache . IDENT_28 . IDENT_29 . IDENT_30 ) { org . apache . avro . Schema IDENT_8 = new org . apache . avro . Schema . METHOD_3 ( ) . parse ( io . cdap . plugin . batch . IDENT_31 . IDENT_32 . toString ( ) ) ; java . util . Map < java . lang . String , java . lang . Integer > IDENT_33 = new java . util . HashMap ( ) ; for ( org . apache . IDENT_28 . IDENT_29 . IDENT_30 file : IDENT_34 . list ( ) ) { java . lang . String IDENT_35 = file . getName ( ) ; if ( IDENT_35 . METHOD_13 ( STRING_8 ) ) { org . apache . avro . io . IDENT_36 < org . apache . avro . IDENT_9 . IDENT_10 > IDENT_37 = new org . apache . avro . IDENT_9 . METHOD_14 ( IDENT_8 ) ; org . apache . avro . file . IDENT_38 < org . apache . avro . IDENT_9 . IDENT_10 > IDENT_39 = new org . apache . avro . file . METHOD_15 ( file . METHOD_16 ( ) , IDENT_37 ) ; for ( org . apache . avro . IDENT_9 . IDENT_10 record : IDENT_39 ) { IDENT_33 . put ( record . get ( STRING_9 ) . toString ( ) , ( ( java . lang . Integer ) ( record . get ( STRING_10 ) ) ) ) ; } IDENT_39 . close ( ) ; } else if ( IDENT_35 . METHOD_13 ( STRING_11 ) ) { org . apache . hadoop . fs . Path IDENT_40 = new org . apache . hadoop . fs . Path ( file . toString ( ) ) ; org . apache . IDENT_41 . avro . IDENT_42 . Builder < org . apache . avro . IDENT_9 . IDENT_10 > IDENT_43 = org . apache . IDENT_41 . avro . IDENT_42 . builder ( IDENT_40 ) ; org . apache . IDENT_41 . hadoop . IDENT_44 < org . apache . avro . IDENT_9 . IDENT_10 > reader = IDENT_43 . build ( ) ; org . apache . avro . IDENT_9 . IDENT_10 record = reader . read ( ) ; while ( record != null ) { IDENT_33 . put ( record . get ( STRING_9 ) . toString ( ) , ( ( java . lang . Integer ) ( record . get ( STRING_10 ) ) ) ) ; record = reader . read ( ) ; } } } return IDENT_33 ; }
org . junit . Assert . assertEquals ( expected , output )