Fix compile error

This commit is contained in:
Norman Maurer 2014-06-28 22:27:15 +02:00
parent db3c592e6a
commit bebcf81687

View File

@ -308,7 +308,7 @@ public class HttpObjectAggregatorTest {
ch.writeInbound(Unpooled.copiedBuffer("GET / HTTP/1.0 with extra\r\n", CharsetUtil.UTF_8));
Object inbound = ch.readInbound();
assertThat(inbound, is(instanceOf(FullHttpRequest.class)));
assertTrue(((FullHttpRequest) inbound).getDecoderResult().isFailure());
assertTrue(((FullHttpRequest) inbound).decoderResult().isFailure());
assertNull(ch.readInbound());
ch.finish();
}
@ -319,7 +319,7 @@ public class HttpObjectAggregatorTest {
ch.writeInbound(Unpooled.copiedBuffer("HTTP/1.0 BAD_CODE Bad Server\r\n", CharsetUtil.UTF_8));
Object inbound = ch.readInbound();
assertThat(inbound, is(instanceOf(FullHttpResponse.class)));
assertTrue(((FullHttpResponse) inbound).getDecoderResult().isFailure());
assertTrue(((FullHttpResponse) inbound).decoderResult().isFailure());
assertNull(ch.readInbound());
ch.finish();
}