use of alluxio.network.protocol.RPCMessage in project alluxio by Alluxio.
the class ClientHandlerTest method channelRead0ThrowsException.
/**
* Makes sure that an {@link IllegalArgumentException} is thrown when the message is
* not a {@link alluxio.network.protocol.RPCResponse}.
*/
@Test
public void channelRead0ThrowsException() throws IOException {
final RPCMessage message = new RPCBlockReadRequest(0, 0, 0, 0, 0);
mThrown.expect(IllegalArgumentException.class);
mThrown.expectMessage(ExceptionMessage.NO_RPC_HANDLER.getMessage(message.getType()));
mHandler.channelRead0(mContext, message);
}
Aggregations