0

In Netty in Action, I read about EmbeddedChannel which can be used for unit testing.

My use case now goes beyond unit testing, and more of integration testing. I want to be able to start the server and then, and within the test, configure/modify the channel handlers.

How is such an integration test setup possible in Netty 4?

Finlay Weber
  • 2,989
  • 3
  • 17
  • 37

1 Answers1

0

I am not sure what exactly you are asking about here... Sure you can just start a Netty server as normal by bootstrap it and then modify the pipeline on the fly by using channel.pipeline()... .

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