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