|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--net.sourceforge.jtds.test.UnitTestBase
|
+--net.sourceforge.jtds.test.ConnectionJDBC2UnitTest
| Inner Class Summary | |
static class |
ConnectionJDBC2UnitTest.Test_ConnectionJDBC2_unpackProperties
Class used to test ConnectionJDBC2.unpackProperties(Properties). |
| Fields inherited from class junit.framework.TestCase |
fName |
| Constructor Summary | |
ConnectionJDBC2UnitTest(java.lang.String name)
Constructor. |
|
| Method Summary | |
private void |
assertSQLExceptionForBadWholeNumberProperty(java.lang.String key)
Assert that an SQLException is thrown when ConnectionJDBC2.unpackProperties(Properties) is called
with an invalid integer (or long) string set on a property. |
static junit.framework.Test |
suite()
Construct a test suite for this class. |
void |
test_unpackProperties_invalidIntegerProperty()
Test that an SQLException is thrown when
parsing invalid integer (and long) properties. |
| Methods inherited from class net.sourceforge.jtds.test.UnitTestBase |
assertEquals, assertEquals, failNotEquals, format, invokeConstructor, invokeGetInstanceField, invokeInstanceMethod, invokeStaticMethod |
| 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, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public ConnectionJDBC2UnitTest(java.lang.String name)
name - The name of the test.| Method Detail |
public static junit.framework.Test suite()
DefaultPropertiesTestLibrary after creating an
anonymous DefaultPropertiesTester object.public void test_unpackProperties_invalidIntegerProperty()
SQLException is thrown when
parsing invalid integer (and long) properties.private void assertSQLExceptionForBadWholeNumberProperty(java.lang.String key)
ConnectionJDBC2.unpackProperties(Properties) is called
with an invalid integer (or long) string set on a property.
Note that because Java 1.3 is still supported, the
RuntimeException that is caught may not contain the
original Throwable cause, only the original message.key - The message key used to retrieve the property name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||