|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
net.sourceforge.jtds.test.UnitTestBase
net.sourceforge.jtds.test.NamedPipeUnitTest
Unit tests for the SharedNamedPipe
class.
Field Summary |
Fields inherited from class junit.framework.TestCase |
|
Constructor Summary | |
NamedPipeUnitTest(java.lang.String name)
Constructor. |
Method Summary | |
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. |
Methods inherited from class net.sourceforge.jtds.test.UnitTestBase |
assertEquals, invokeConstructor, invokeGetInstanceField, invokeInstanceMethod, invokeSetInstanceField, invokeStaticMethod, ucFirst |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NamedPipeUnitTest(java.lang.String name)
name
- The name of the test.Method Detail |
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)
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |