facebook/nifty — pull request #17 by hgschmie (2012-11-14 23:11:01+00:00)
Title: Make the timeout tests be bullet proof by shimming out the nio selectors...

The current code tries to shim the server sockets by simulating a "full" socket. This does not work e.g. on Linux JDK 1.7.

This change uses a separate selector provider to simulate a non-connecting client. As the test changes the SelectotrProvider implementation, it needs to be in a separate class and the surefire plugin must fork for each test.