Fix compile error introduced by 67b851209f

This commit is contained in:
Norman Maurer 2019-08-21 10:40:36 +02:00
parent 642c9166f4
commit 2abaf50570

View File

@ -66,7 +66,7 @@ public class WebSocketServerProtocolHandlerTest {
public void testWebSocketServerProtocolHandshakeHandlerReplacedBeforeHandshake() throws Exception { public void testWebSocketServerProtocolHandshakeHandlerReplacedBeforeHandshake() throws Exception {
EmbeddedChannel ch = createChannel(new MockOutboundHandler()); EmbeddedChannel ch = createChannel(new MockOutboundHandler());
ChannelHandlerContext handshakerCtx = ch.pipeline().context(WebSocketServerProtocolHandshakeHandler.class); ChannelHandlerContext handshakerCtx = ch.pipeline().context(WebSocketServerProtocolHandshakeHandler.class);
ch.pipeline().addLast(new ChannelInboundHandlerAdapter() { ch.pipeline().addLast(new ChannelHandler() {
@Override @Override
public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception { public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {
if (evt instanceof WebSocketServerProtocolHandler.HandshakeComplete) { if (evt instanceof WebSocketServerProtocolHandler.HandshakeComplete) {