HttpClientCodecTest build failure due to bad merge

Motivation:
Commit 199e1f47cb0019ef45c567e24449f28d4e646a3e introduced a build failure when merged from 4.1.

Modifications:
- Change channelRead0 to messageReceived

Result:
HTTP codec builds.
This commit is contained in:
Scott Mitchell 2015-08-05 12:53:43 -07:00
parent 199e1f47cb
commit a57c16ea39

View File

@ -165,7 +165,7 @@ public class HttpClientCodecTest {
ch.pipeline().addLast(new HttpObjectAggregator(4096));
ch.pipeline().addLast(new SimpleChannelInboundHandler<FullHttpRequest>() {
@Override
protected void channelRead0(ChannelHandlerContext ctx, FullHttpRequest msg) {
protected void messageReceived(ChannelHandlerContext ctx, FullHttpRequest msg) {
// This is just a simple demo...don't block in IO
assertTrue(ctx.channel() instanceof SocketChannel);
final SocketChannel sChannel = (SocketChannel) ctx.channel();
@ -209,7 +209,7 @@ public class HttpClientCodecTest {
ch.pipeline().addLast(new HttpObjectAggregator(4096));
ch.pipeline().addLast(new SimpleChannelInboundHandler<FullHttpResponse>() {
@Override
protected void channelRead0(ChannelHandlerContext ctx, FullHttpResponse msg) {
protected void messageReceived(ChannelHandlerContext ctx, FullHttpResponse msg) {
responseRecievedLatch.countDown();
}
});