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