public abstract class AbstractStreamWriteFilterTest<M,U extends AbstractStreamWriteFilter<M>> extends Object
Constructor and Description |
---|
AbstractStreamWriteFilterTest() |
Modifier and Type | Method and Description |
---|---|
protected abstract U |
createFilter() |
protected abstract M |
createMessage(byte[] data) |
static WriteRequest |
eqWriteRequest(WriteRequest expected) |
void |
testSetWriteBufferSize()
Tests that
AbstractStreamWriteFilter.setWriteBufferSize(int) checks the
specified size. |
void |
testWriteEmptyFile() |
void |
testWriteNonFileRegionMessage()
Tests that the filter just passes objects which aren't FileRegion's
through to the next filter.
|
void |
testWriteSeveralBuffersStream()
Tests when the contents of the file doesn't fit into one write buffer.
|
void |
testWriteSingleBufferFile()
Tests when the contents of the file fits into one write buffer.
|
void |
testWritesWriteRequestQueueWhenFinished() |
void |
testWriteUsingSocketTransport() |
void |
testWriteWhileWriteInProgress() |
public AbstractStreamWriteFilterTest()
protected abstract U createFilter()
protected abstract M createMessage(byte[] data) throws Exception
Exception
public void testWriteEmptyFile() throws Exception
Exception
public void testWriteNonFileRegionMessage() throws Exception
Exception
- when something goes wrongpublic void testWriteSingleBufferFile() throws Exception
Exception
- when something goes wrongpublic void testWriteSeveralBuffersStream() throws Exception
Exception
- when something goes wrongpublic void testWriteWhileWriteInProgress() throws Exception
Exception
public void testWritesWriteRequestQueueWhenFinished() throws Exception
Exception
public void testSetWriteBufferSize()
AbstractStreamWriteFilter.setWriteBufferSize(int)
checks the
specified size.public void testWriteUsingSocketTransport() throws Exception
Exception
public static WriteRequest eqWriteRequest(WriteRequest expected)
Copyright © 2004–2016 Apache MINA Project. All rights reserved.