Run the WebSocketClientHandshaker08Test on the 08 implementation (#7974)

Motivation:

The websockets abstract test suite does not run against the 08
implementation in the 08 version of the test suite.

Modifications:

Update the WebSocketClientHandshaker08Test to instantiate a new
WebSocketClientHandshaker08 rather than an 07 handshaker.

Result:

The WebSocketClientHandshaker08Test now tests the 08 implementation.
This commit is contained in:
Nick Travers 2018-05-27 01:02:49 -07:00 committed by Norman Maurer
parent 8a85761500
commit 9a3311506e

View File

@ -20,6 +20,6 @@ import java.net.URI;
public class WebSocketClientHandshaker08Test extends WebSocketClientHandshaker07Test { public class WebSocketClientHandshaker08Test extends WebSocketClientHandshaker07Test {
@Override @Override
protected WebSocketClientHandshaker newHandshaker(URI uri) { protected WebSocketClientHandshaker newHandshaker(URI uri) {
return new WebSocketClientHandshaker07(uri, WebSocketVersion.V08, null, false, null, 1024); return new WebSocketClientHandshaker08(uri, WebSocketVersion.V08, null, false, null, 1024);
} }
} }