@Override public void exceptionCaught(Throwable cause, TransportClient client) { delegate.exceptionCaught(cause, client); }
@Override public void exceptionCaught(Throwable cause) { rpcHandler.exceptionCaught(cause, reverseClient); }
@Override public void exceptionCaught(Throwable cause, TransportClient client) { delegate.exceptionCaught(cause, client); }
@Override public void exceptionCaught(Throwable cause) { rpcHandler.exceptionCaught(cause, reverseClient); }
@Override public void exceptionCaught(Throwable cause) { rpcHandler.exceptionCaught(cause, reverseClient); }
@Override public void exceptionCaught(Throwable cause) { rpcHandler.exceptionCaught(cause, reverseClient); }
@Override public void exceptionCaught(Throwable cause, TransportClient client) { delegate.exceptionCaught(cause, client); }
@Override public void exceptionCaught(Throwable cause, TransportClient client) { delegate.exceptionCaught(cause, client); }
@Override public void exceptionCaught(Throwable cause, TransportClient client) { delegate.exceptionCaught(cause, client); }
@Override public void exceptionCaught(Throwable cause, TransportClient client) { delegate.exceptionCaught(cause, client); }
@Override public void exceptionCaught(Throwable cause, TransportClient client) { delegate.exceptionCaught(cause, client); }
@Test public void testRpcHandlerDelegate() throws Exception { // Tests all delegates exception for receive(), which is more complicated and already handled // by all other tests. RpcHandler handler = mock(RpcHandler.class); RpcHandler saslHandler = new SaslRpcHandler(null, null, handler, null); saslHandler.getStreamManager(); verify(handler).getStreamManager(); saslHandler.channelInactive(null); verify(handler).channelInactive(any(TransportClient.class)); saslHandler.exceptionCaught(null, null); verify(handler).exceptionCaught(any(Throwable.class), any(TransportClient.class)); }
@Test public void testRpcHandlerDelegate() throws Exception { // Tests all delegates exception for receive(), which is more complicated and already handled // by all other tests. RpcHandler handler = mock(RpcHandler.class); RpcHandler saslHandler = new SaslRpcHandler(null, null, handler, null); saslHandler.getStreamManager(); verify(handler).getStreamManager(); saslHandler.channelInactive(null); verify(handler).channelInactive(any(TransportClient.class)); saslHandler.exceptionCaught(null, null); verify(handler).exceptionCaught(any(Throwable.class), any(TransportClient.class)); }