use of com.alibaba.dubbo.remoting.transport.dispatcher.connection.ConnectionOrderedChannelHandler in project dubbo by alibaba.
the class ConnectChannelHandlerTest method test_Connect_Execute_Error.
@Test(expected = ExecutionException.class)
public void test_Connect_Execute_Error() throws RemotingException {
handler = new ConnectionOrderedChannelHandler(new BizChannelHander(false), url);
ThreadPoolExecutor executor = (ThreadPoolExecutor) getField(handler, "connectionExecutor", 1);
executor.shutdown();
handler.connected(new MockedChannel());
}
use of com.alibaba.dubbo.remoting.transport.dispatcher.connection.ConnectionOrderedChannelHandler in project dubbo by alibaba.
the class ConnectChannelHandlerTest method test_Disconnect_Execute_Error.
@Test(expected = ExecutionException.class)
public void test_Disconnect_Execute_Error() throws RemotingException {
handler = new ConnectionOrderedChannelHandler(new BizChannelHander(false), url);
ThreadPoolExecutor executor = (ThreadPoolExecutor) getField(handler, "connectionExecutor", 1);
executor.shutdown();
handler.disconnected(new MockedChannel());
}
Aggregations