METHOD_0 ( ) { class IDENT_0 { boolean IDENT_1 ; java . nio . ByteBuffer IDENT_2 ; int IDENT_3 ; int IDENT_4 ; public METHOD_1 ( boolean expected , java . nio . ByteBuffer buffer , int length , int start ) { IDENT_1 = expected ; IDENT_2 = buffer ; IDENT_3 = length ; IDENT_4 = start ; } } java . util . ArrayList < METHOD_1 > IDENT_5 = new java . util . ArrayList ( ) ; IDENT_5 . add ( new METHOD_1 ( false , null , 0 , 0 ) ) ; IDENT_5 . add ( new METHOD_1 ( true , java . nio . ByteBuffer . METHOD_2 ( new byte [ ] { } ) , 0 , 0 ) ) ; IDENT_5 . add ( new METHOD_1 ( false , java . nio . ByteBuffer . METHOD_2 ( new byte [ ] { 1 } ) , 0 , 0 ) ) ; IDENT_5 . add ( new METHOD_1 ( true , java . nio . ByteBuffer . METHOD_2 ( new byte [ ] { } ) , 0 , 3 ) ) ; IDENT_5 . add ( new METHOD_1 ( false , java . nio . ByteBuffer . METHOD_2 ( new byte [ ] { 1 } ) , 0 , 3 ) ) ; IDENT_5 . add ( new METHOD_1 ( true , java . nio . ByteBuffer . METHOD_2 ( new byte [ ] { 0 } ) , 1 , 0 ) ) ; IDENT_5 . add ( new METHOD_1 ( false , java . nio . ByteBuffer . METHOD_2 ( new byte [ ] { 1 } ) , 1 , 0 ) ) ; IDENT_5 . add ( new METHOD_1 ( true , java . nio . ByteBuffer . METHOD_2 ( new byte [ ] { 0 , 1 , 2 } ) , 3 , 0 ) ) ; IDENT_5 . add ( new METHOD_1 ( false , java . nio . ByteBuffer . METHOD_2 ( new byte [ ] { 0 , 1 , 2 , ( ( byte ) ( 255 ) ) } ) , 3 , 0 ) ) ; IDENT_5 . add ( new METHOD_1 ( false , java . nio . ByteBuffer . METHOD_2 ( new byte [ ] { 1 , 2 , 3 } ) , 3 , 0 ) ) ; IDENT_5 . add ( new METHOD_1 ( true , java . nio . ByteBuffer . METHOD_2 ( new byte [ ] { 3 } ) , 1 , 3 ) ) ; IDENT_5 . add ( new METHOD_1 ( false , java . nio . ByteBuffer . METHOD_2 ( new byte [ ] { 2 } ) , 1 , 3 ) ) ; IDENT_5 . add ( new METHOD_1 ( true , java . nio . ByteBuffer . METHOD_2 ( new byte [ ] { 3 , 4 , 5 } ) , 3 , 3 ) ) ; IDENT_5 . add ( new METHOD_1 ( false , java . nio . ByteBuffer . METHOD_2 ( new byte [ ] { 3 , 4 , 5 , ( ( byte ) ( 255 ) ) } ) , 3 , 3 ) ) ; IDENT_5 . add ( new METHOD_1 ( false , java . nio . ByteBuffer . METHOD_2 ( new byte [ ] { 2 , 3 , 4 } ) , 3 , 3 ) ) ; for ( METHOD_1 IDENT_6 : IDENT_5 ) { boolean result = alluxio . util . io . IDENT_7 . METHOD_0 ( IDENT_6 . IDENT_4 , IDENT_6 . IDENT_3 , IDENT_6 . IDENT_2 ) ; "<AssertPlaceHolder>" ; } } METHOD_0 ( int , int , java . nio . ByteBuffer ) { if ( buf == null ) { return false ; } buf . METHOD_3 ( ) ; if ( ( buf . METHOD_4 ( ) ) != len ) { return false ; } for ( int k = 0 ; k < len ; k ++ ) { if ( ( buf . get ( ) ) != ( ( byte ) ( start + k ) ) ) { return false ; } } return true ; }
org . junit . Assert . assertEquals ( IDENT_6 . IDENT_1 , result )