Fixed a bug where DuplicateChannelBufferTest doesn't test DuplicateChannelBuffer

This commit is contained in:
Trustin Lee 2008-08-26 07:39:39 +00:00
parent 57551914af
commit 48929afd60

View File

@ -33,7 +33,7 @@ public class DuplicateChannelBufferTest extends AbstractChannelBufferTest {
@Override
protected ChannelBuffer newBuffer(int length) {
buffer = ChannelBuffers.buffer(length).duplicate();
buffer = new DuplicatedChannelBuffer(ChannelBuffers.buffer(length));
assertEquals(0, buffer.writerIndex());
return buffer;
}