METHOD_0 ( ) { org . apache . IDENT_0 . IDENT_1 . hdfs . IDENT_2 . LOG . debug ( STRING_0 ) ; org . apache . IDENT_0 . Context context = new org . apache . IDENT_0 . Context ( ) ; org . apache . IDENT_0 . IDENT_3 channel = new org . apache . IDENT_0 . channel . METHOD_1 ( ) ; context . put ( STRING_1 , IDENT_4 ) ; context . put ( STRING_2 , STRING_3 ) ; org . apache . IDENT_0 . conf . IDENT_5 . METHOD_2 ( IDENT_1 , context ) ; org . apache . IDENT_0 . conf . IDENT_5 . METHOD_2 ( channel , context ) ; IDENT_1 . METHOD_3 ( channel ) ; IDENT_1 . start ( ) ; "<AssertPlaceHolder>" ; IDENT_1 . METHOD_4 ( ) ; } process ( ) { org . apache . IDENT_0 . IDENT_1 . IDENT_6 . Status status = Status . IDENT_7 ; org . apache . IDENT_0 . IDENT_3 channel = METHOD_5 ( ) ; org . apache . IDENT_0 . IDENT_8 IDENT_9 = channel . METHOD_6 ( ) ; java . util . List < org . apache . hadoop . hbase . client . IDENT_10 > IDENT_11 = new java . util . METHOD_7 ( ) ; java . util . List < org . apache . hadoop . hbase . client . IDENT_12 > IDENT_13 = new java . util . METHOD_7 ( ) ; try { IDENT_9 . METHOD_8 ( ) ; if ( ( serializer ) instanceof org . apache . IDENT_0 . IDENT_1 . IDENT_6 . IDENT_14 ) { ( ( org . apache . IDENT_0 . IDENT_1 . IDENT_6 . IDENT_14 ) ( serializer ) ) . METHOD_9 ( ) ; } long i = 0 ; for ( ; i < ( IDENT_15 ) ; i ++ ) { org . apache . IDENT_0 . IDENT_16 event = channel . METHOD_10 ( ) ; if ( event == null ) { if ( i == 0 ) { status = Status . IDENT_17 ; IDENT_18 . METHOD_11 ( ) ; } else { IDENT_18 . METHOD_12 ( ) ; } break ; } else { serializer . METHOD_13 ( event , IDENT_19 ) ; IDENT_11 . addAll ( serializer . METHOD_14 ( ) ) ; IDENT_13 . addAll ( serializer . METHOD_15 ( ) ) ; } } if ( i == ( IDENT_15 ) ) { IDENT_18 . METHOD_16 ( ) ; } IDENT_18 . METHOD_17 ( i ) ; METHOD_18 ( IDENT_11 , IDENT_13 , IDENT_9 ) ; } catch ( java . lang . Throwable e ) { try { IDENT_9 . METHOD_19 ( ) ; } catch ( java . lang . Exception IDENT_20 ) { org . apache . IDENT_0 . IDENT_1 . IDENT_6 . IDENT_21 . logger . error ( ( STRING_4 + STRING_5 ) , IDENT_20 ) ; } org . apache . IDENT_0 . IDENT_1 . IDENT_6 . IDENT_21 . logger . error ( ( STRING_6 + STRING_7 ) , e ) ; IDENT_18 . METHOD_20 ( e ) ; if ( ( e instanceof java . lang . IDENT_22 ) || ( e instanceof java . lang . RuntimeException ) ) { org . apache . IDENT_0 . IDENT_1 . IDENT_6 . IDENT_21 . logger . error ( ( STRING_6 + STRING_7 ) , e ) ; com . google . common . base . IDENT_23 . METHOD_21 ( e ) ; } else { org . apache . IDENT_0 . IDENT_1 . IDENT_6 . IDENT_21 . logger . error ( ( STRING_6 + STRING_7 ) , e ) ; throw new org . apache . IDENT_0 . METHOD_22 ( ( STRING_6 + STRING_7 ) , e ) ; } } finally { IDENT_9 . close ( ) ; } return status ; }
org . junit . Assert . assertEquals ( Status . IDENT_17 , IDENT_1 . process ( ) )