public class NamedPipeUnitTest extends UnitTestBase
SharedNamedPipe
class.Constructor and Description |
---|
NamedPipeUnitTest(java.lang.String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private int |
invoke_calculateBufferSize(int tdsVersion,
int packetSize)
Helper method to invoke
Support.calculateNamedPipeBufferSize(int, int)
using reflection. |
void |
testCalculateBufferSize_TDS42()
Test that
Support.calculateNamedPipeBufferSize(int, int)
sets the buffer size appropriately for TDS 4.2 when the packet
size is set to 0. |
void |
testCalculateBufferSize_TDS50()
Test that
Support.calculateNamedPipeBufferSize(int, int)
sets the buffer size appropriately for TDS 5.0 when the packet
size is set to 0. |
void |
testCalculateBufferSize_TDS70()
Test that
Support.calculateNamedPipeBufferSize(int, int)
sets the buffer size appropriately for TDS 7.0 when the packet
size is set to 0. |
void |
testCalculateBufferSize_TDS80()
Test that
Support.calculateNamedPipeBufferSize(int, int)
sets the buffer size appropriately for TDS 8.0 when the packet
size is set to 0. |
assertEquals, invokeConstructor, invokeGetInstanceField, invokeInstanceMethod, invokeSetInstanceField, invokeStaticMethod, ucFirst
compareBytes, getLongString, getLongString, getType, getTypemap
compareInputStreams, compareReaders, connect, dropDatabase, dropFunction, dropProcedure, dropTable, dropTrigger, dropType, dropView, dump, dump, dumpAll, dumpKeys, dumpRow, dumpRow, getConnection, getConnection, makeObjects, makeTestTables, setUp, tearDown
public NamedPipeUnitTest(java.lang.String name)
name
- The name of the test.public void testCalculateBufferSize_TDS42()
Support.calculateNamedPipeBufferSize(int, int)
sets the buffer size appropriately for TDS 4.2 when the packet
size is set to 0.public void testCalculateBufferSize_TDS50()
Support.calculateNamedPipeBufferSize(int, int)
sets the buffer size appropriately for TDS 5.0 when the packet
size is set to 0.public void testCalculateBufferSize_TDS70()
Support.calculateNamedPipeBufferSize(int, int)
sets the buffer size appropriately for TDS 7.0 when the packet
size is set to 0.public void testCalculateBufferSize_TDS80()
Support.calculateNamedPipeBufferSize(int, int)
sets the buffer size appropriately for TDS 8.0 when the packet
size is set to 0.private int invoke_calculateBufferSize(int tdsVersion, int packetSize)
Support.calculateNamedPipeBufferSize(int, int)
using reflection.tdsVersion
- The TDS version as an int
.packetSize
- The packet size as an int
.Support.calculateNamedPipeBufferSize(int, int)
.Generated on June 8 2013