void function ( ) { RPCBlockReadResponse loc0 = new RPCBlockReadResponse ( BLOCK_ID , OFFSET , LENGTH , null , STATUS ) ; loc0 . encode ( mBuffer ) ; RPCBlockReadResponse loc1 = RPCBlockReadResponse . decode ( mBuffer ) ; assertValid ( BLOCK_ID , OFFSET , LENGTH , STATUS , loc0 ) ; assertValid ( BLOCK_ID , OFFSET , LENGTH , STATUS , loc1 ) ; }
tests the rpcblockreadresponse #encode bytebuf and rpcblockreadresponse #decode bytebuf methods . 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 encodedLength concode_elem_sep void before concode_elem_sep void getPayloadDataBuffer concode_elem_sep void assertValid concode_elem_sep void assertValid concode_elem_sep void createErrorResponse concode_elem_sep void validate