use of org.apache.dubbo.remoting.transport.dispatcher.connection.ConnectionOrderedChannelHandler in project dubbo by alibaba.
the class ConnectChannelHandlerTest method test_Disconnect_Biz_Error.
// biz error should not throw and affect biz thread.
@Test
public void test_Disconnect_Biz_Error() throws RemotingException {
handler = new ConnectionOrderedChannelHandler(new BizChannelHander(true), url);
handler.disconnected(new MockedChannel());
}
use of org.apache.dubbo.remoting.transport.dispatcher.connection.ConnectionOrderedChannelHandler in project dubbo by alibaba.
the class ConnectChannelHandlerTest method test_Disconnect_Execute_Error.
@Test
public void test_Disconnect_Execute_Error() throws RemotingException {
Assertions.assertThrows(ExecutionException.class, () -> {
handler = new ConnectionOrderedChannelHandler(new BizChannelHander(false), url);
ThreadPoolExecutor executor = (ThreadPoolExecutor) getField(handler, "connectionExecutor", 1);
executor.shutdown();
handler.disconnected(new MockedChannel());
});
}
Aggregations