netty5/handler-proxy/src/test/java/io/netty/handler/proxy
Alexey Kachayev 9ffdec302e Make results of handler proxy tests reproducible
Motivation:

`ProxyHandlerTest` relies on random values to run tests: first to
shuffle collection of test items and lately to set configuration
flag for `AUTO_READ`. While the purpose of randomization is clear,
it's still impossible to reproduce the same sequence of test cases
when something went wrong. For `AUTO_READ` it's even impossible
to tell what flag was set when the particular test failed.

Modifications:

* Test runner now log seed values that was used for shuffling,
  so you can take one and put in your tests to "freeze" them
  while debugging (pretty common approach with randomized tests)

* `SuccessItemTest` is split into 2 different use cases:
  for AUTO_READ flag set to "on" and "off"

Result:

You can reproduce specific tests results now.
2018-06-24 07:50:29 +02:00
..
HttpProxyHandlerTest.java HttpProxyHandler generates invalid CONNECT url and Host header when address is resolved 2018-03-27 09:43:11 +02:00
HttpProxyServer.java Wrap operations requiring SocketPermission with doPrivileged blocks 2017-01-19 21:12:52 +01:00
ProxyHandlerTest.java Make results of handler proxy tests reproducible 2018-06-24 07:50:29 +02:00
ProxyServer.java Add proxy support for client socket connections 2014-10-14 12:29:08 +09:00
Socks4ProxyServer.java Wrap operations requiring SocketPermission with doPrivileged blocks 2017-01-19 21:12:52 +01:00
Socks5ProxyServer.java Wrap operations requiring SocketPermission with doPrivileged blocks 2017-01-19 21:12:52 +01:00
TestMode.java Add proxy support for client socket connections 2014-10-14 12:29:08 +09:00
UnresponsiveHandler.java Add proxy support for client socket connections 2014-10-14 12:29:08 +09:00