|
1 | 1 | package org.jooby.internal.netty; |
2 | 2 |
|
3 | | -import static io.netty.channel.ChannelFutureListener.FIRE_EXCEPTION_ON_FAILURE; |
| 3 | +import static io.netty.channel.ChannelFutureListener.CLOSE; |
4 | 4 | import static org.easymock.EasyMock.expect; |
5 | 5 | import static org.easymock.EasyMock.expectLastCall; |
6 | 6 | import static org.easymock.EasyMock.isA; |
@@ -57,7 +57,7 @@ public class NettyWebSocketTest { |
57 | 57 | 1001, "normal"); |
58 | 58 |
|
59 | 59 | ChannelFuture future = unit.mock(ChannelFuture.class); |
60 | | - expect(future.addListener(FIRE_EXCEPTION_ON_FAILURE)).andReturn(future); |
| 60 | + expect(future.addListener(CLOSE)).andReturn(future); |
61 | 61 |
|
62 | 62 | WebSocketServerHandshaker handshaker = unit.get(WebSocketServerHandshaker.class); |
63 | 63 | expect(handshaker.close(ch, frame)).andReturn(future); |
@@ -202,7 +202,7 @@ public void terminate() throws Exception { |
202 | 202 | callback.accept(1006, Optional.of("Harsh disconnect")); |
203 | 203 |
|
204 | 204 | ChannelFuture future = unit.mock(ChannelFuture.class); |
205 | | - expect(future.addListener(FIRE_EXCEPTION_ON_FAILURE)).andReturn(future); |
| 205 | + expect(future.addListener(CLOSE)).andReturn(future); |
206 | 206 |
|
207 | 207 | ChannelHandlerContext ctx = unit.get(ChannelHandlerContext.class); |
208 | 208 | expect(ctx.disconnect()).andReturn(future); |
@@ -584,7 +584,7 @@ public void handleCloseFrame() throws Exception { |
584 | 584 | expect(ctx.channel()).andReturn(ch); |
585 | 585 |
|
586 | 586 | ChannelFuture future = unit.mock(ChannelFuture.class); |
587 | | - expect(future.addListener(FIRE_EXCEPTION_ON_FAILURE)).andReturn(future); |
| 587 | + expect(future.addListener(CLOSE)).andReturn(future); |
588 | 588 |
|
589 | 589 | WebSocketServerHandshaker handshaker = unit.get(WebSocketServerHandshaker.class); |
590 | 590 | expect(handshaker.close(ch, retain)).andReturn(future); |
@@ -625,7 +625,7 @@ public void handleCloseWithStatusFrame() throws Exception { |
625 | 625 | expect(ctx.channel()).andReturn(ch); |
626 | 626 |
|
627 | 627 | ChannelFuture future = unit.mock(ChannelFuture.class); |
628 | | - expect(future.addListener(FIRE_EXCEPTION_ON_FAILURE)).andReturn(future); |
| 628 | + expect(future.addListener(CLOSE)).andReturn(future); |
629 | 629 |
|
630 | 630 | WebSocketServerHandshaker handshaker = unit.get(WebSocketServerHandshaker.class); |
631 | 631 | expect(handshaker.close(ch, retain)).andReturn(future); |
|
0 commit comments