|
|||||||||||
| 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.jdbc.TestBase
net.sourceforge.jtds.jdbc.DatabaseTestCase
net.sourceforge.jtds.jdbc.UnitTestBase
net.sourceforge.jtds.jdbcx.JtdsDataSourceTest
Unit tests for the JtdsDataSource class.
| Field Summary |
| Fields inherited from class net.sourceforge.jtds.jdbc.DatabaseTestCase |
|
| Fields inherited from class net.sourceforge.jtds.jdbc.TestBase |
props |
| Fields inherited from class junit.framework.TestCase |
|
| Constructor Summary | |
JtdsDataSourceTest(java.lang.String name)
Constructor. |
|
| Method Summary | |
static junit.framework.Test |
suite()
Construct a test suite for this class. |
void |
testAddNonNullProperties()
ensure only non-null properties are added |
void |
testDefaultTdsVersion()
Test connecting without specifying TDS version. |
void |
testNoHost()
Test connecting without specifying a host. |
void |
testNormal()
Test connecting with the settings in connection.properties. |
void |
testNoUser()
Test connecting without specifying a user. |
void |
testPublicConstructor()
Tests that the public constructor works. |
| Methods inherited from class net.sourceforge.jtds.jdbc.UnitTestBase |
assertEquals, invokeConstructor, invokeGetInstanceField, invokeInstanceMethod, invokeSetInstanceField, invokeStaticMethod, ucFirst |
| Methods inherited from class net.sourceforge.jtds.jdbc.DatabaseTestCase |
getLongString, getLongString, getType, getTypemap |
| Methods inherited from class net.sourceforge.jtds.jdbc.TestBase |
compareInputStreams, compareReaders, connect, dropDatabase, dropFunction, dropProcedure, dropTable, dropTrigger, dropType, dropView, dump, dump, dumpAll, dumpKeys, dumpRow, dumpRow, getConnection, getConnection, makeObjects, makeTestTables, setUp, tearDown |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 JtdsDataSourceTest(java.lang.String name)
name - The name of the test.| Method Detail |
public static junit.framework.Test suite()
public void testPublicConstructor()
public void testNoHost()
public void testNoUser()
public void testNormal()
Should also test bug [1051595] jtdsDataSource connects only to localhost.
public void testDefaultTdsVersion()
public void testAddNonNullProperties()
throws java.lang.Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||