void function ( ) { RPCBlockReadRequest loc0 = new RPCBlockReadRequest ( BLOCK_ID , OFFSET , LENGTH , LOCK_ID , SESSION_ID ) ; int loc1 = loc0 . getEncodedLength ( ) ; loc0 . encode ( mBuffer ) ; Assert . assertEquals ( loc1 , mBuffer . readableBytes ( ) ) ; }
tests the rpcblockreadrequest #getencodedlength method . concode_field_sep long OFFSET concode_elem_sep long LOCK_ID concode_elem_sep long SESSION_ID concode_elem_sep long BLOCK_ID concode_elem_sep ByteBuf mBuffer concode_elem_sep long LENGTH concode_field_sep void invalidLength concode_elem_sep void assertInvalid concode_elem_sep void encodeDecode concode_elem_sep void before concode_elem_sep void validLength concode_elem_sep void assertValid concode_elem_sep void assertValid concode_elem_sep void negativeOffset concode_elem_sep void validate