void function ( ) { int loc0 = 10 ; DataByteBuffer loc1 = new DataByteBuffer ( ByteBuffer . allocate ( loc0 ) , loc0 ) ; RPCBlockReadResponse loc2 = new RPCBlockReadResponse ( BLOCK_ID , OFFSET , LENGTH , loc1 , STATUS ) ; assertValid ( loc2 ) ; Assert . assertEquals ( loc1 , loc2 . getPayloadDataBuffer ( ) ) ; }
tests the rpcblockreadresponse #getpayloaddatabuffer method . concode_field_sep long SESSION_ID concode_elem_sep ByteBuf mBuffer concode_elem_sep long BLOCK_ID concode_elem_sep long LOCK_ID concode_elem_sep ExpectedException mThrown concode_elem_sep long LENGTH concode_elem_sep RPCResponse.Status STATUS concode_elem_sep long OFFSET concode_field_sep void encodedLengthTest concode_elem_sep void before concode_elem_sep void assertValid concode_elem_sep void assertValid concode_elem_sep void validateTest concode_elem_sep void encodeDecodeTest concode_elem_sep void createErrorResponseTest