Hiren
Hiren

Reputation: 29

Unit testing with netty 4

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

Answers (1)

Norman Maurer
Norman Maurer

Reputation: 23567

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

Upvotes: 3

Related Questions