assertEquals(-1, bytesRead);
assertTrue(decoder.isCompleted());
}
public void testBasicDecodingSmallBuffer() throws Exception {
ReadableByteChannel channel = new ReadableByteChannelMockup(
new String[] {"stuff;", "more stuff"}, "US-ASCII");
SessionInputBuffer inbuf = new SessionInputBuffer(1024, 256);
LengthDelimitedDecoder decoder = new LengthDelimitedDecoder(channel, inbuf, 16);