Reputation: 29
Our application is built using Netty 4 websockets. We are trying to write unit testcases. In that process we want to mock ChannelHandlerContext, Channel, PipeLine etc. Can someone suggest how to do this?
Thanks
Upvotes: 0
Views: 1332
Reputation: 23567
I think you should just use EmbeddedChannel for testing your ChannelHandlers. See other tests included in Netty how todo this.
Upvotes: 3