Search in sources :

Example 6 with ChannelId

use of io.netty.channel.ChannelId in project netty by netty.

the class EmbeddedChannelTest method testConstructWithChannelId.

@Test
public void testConstructWithChannelId() {
    ChannelId channelId = new CustomChannelId(1);
    EmbeddedChannel channel = new EmbeddedChannel(channelId);
    assertSame(channelId, channel.id());
}
Also used : ChannelId(io.netty.channel.ChannelId) Test(org.junit.jupiter.api.Test)

Aggregations

ChannelId (io.netty.channel.ChannelId)6 Test (org.junit.jupiter.api.Test)3 ByteBuf (io.netty.buffer.ByteBuf)2 ByteBufInputStream (io.netty.buffer.ByteBufInputStream)2 ByteBufOutputStream (io.netty.buffer.ByteBufOutputStream)2 ObjectInputStream (java.io.ObjectInputStream)2 ObjectOutputStream (java.io.ObjectOutputStream)2 Channel (io.netty.channel.Channel)1 DefaultChannelId (io.netty.channel.DefaultChannelId)1 ServerChannel (io.netty.channel.ServerChannel)1