public abstract class AbstractStreamWriteFilterTest<M,U extends org.apache.mina.filter.stream.AbstractStreamWriteFilter<M>> extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.mina.core.session.IoSession |
session |
Constructor and Description |
---|
AbstractStreamWriteFilterTest() |
Modifier and Type | Method and Description |
---|---|
protected abstract U |
createFilter() |
protected abstract M |
createMessage(byte[] data) |
static org.apache.mina.core.write.WriteRequest |
eqWriteRequest(org.apache.mina.core.write.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() |
protected abstract U createFilter()
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 org.apache.mina.core.write.WriteRequest eqWriteRequest(org.apache.mina.core.write.WriteRequest expected)
Copyright © 2004–2021 Apache MINA Project. All rights reserved.