@Test public void testGetID() throws Exception { Channel channel = createChannel(); NettyConnection conn = new NettyConnection(emptyMap, channel, new MyListener(), false, false); Assert.assertEquals(channel.hashCode(), conn.getID()); }
public Object getID() { // TODO: Think of it return channel.hashCode(); }
protected static int channelId(Channel channel) { return channel.hashCode(); }