0

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

Hiren
  • 29
  • 1
  • 5

1 Answers1

3

I think you should just use EmbeddedChannel for testing your ChannelHandlers. See other tests included in Netty how todo this.

Norman Maurer
  • 23,104
  • 2
  • 33
  • 31