|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase net.sourceforge.jtds.jdbc.TestBase net.sourceforge.jtds.jdbc.DatabaseTestCase net.sourceforge.jtds.jdbc.SunTest
Test case to illustrate errors reported by SUN JBDC compatibility test suite.
Field Summary |
Fields inherited from class net.sourceforge.jtds.jdbc.DatabaseTestCase |
|
Fields inherited from class net.sourceforge.jtds.jdbc.TestBase |
con, props |
Fields inherited from class junit.framework.TestCase |
|
Constructor Summary | |
SunTest(java.lang.String name)
|
Method Summary | |
static void |
main(java.lang.String[] args)
|
static junit.framework.Test |
suite()
|
void |
testCharToLong()
Generic test for SUN bugs: bigint null parameter values sent as integer size. |
void |
testCharToReal()
Generic test for errors caused by promotion out parameters of Float to Double by driver. |
void |
testConversionToLongvarchar()
Test conversion of various types to LONGVARCHAR. |
void |
testDateTime()
Generic Tests for SUN bugs such as Can't convert VARCHAR to Timestamp Can't convert VARCHAR to Time Can't convert VARCHAR to Date Internal time representation causes equals to fail |
void |
testDateTimeFn()
Test for bug [ 1008126 ] Metadata getTimeDateFunctions() wrong |
void |
testGetFloatObject()
Generic test for SUN bug where Float was promoted to Double by driver leading to ClassCastExceptions in the tests. |
void |
testGetMetaData()
Test for SUN bug [ PrepStmt1.getMetaData() ] Driver loops if select contains commas. |
void |
testGetProcedures()
Test for SUN bug [ dbMeta8.testGetProcedures ] The wrong column names are returned by getProcedures(). |
void |
testNestedEscapes()
Test nested escapes |
void |
testPrepStmtError()
Test for bug [ 1012301 ] 0.9-rc1: Prepared statement execution error. |
void |
testSetDateObject()
Test for bug [ 1012307 ] PreparedStatement.setObject(java.util.Date) not working. |
void |
testSetFetchDirectiion()
Test for SUN bug [ stmt2.testSetFetchDirection04 ] fetch direction constant not validated. |
void |
testSetFetchSize()
Test for SUN bug [ resultSet1.testSetFetchSize02 ] attempt to set non zero fetch size rejected. |
void |
testSqlComments()
Test for bug [ 1011650 ] 0.9-rc1: comments get parsed |
void |
testStringFn()
Test for scalar string functions. |
Methods inherited from class net.sourceforge.jtds.jdbc.DatabaseTestCase |
compareBytes, 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 SunTest(java.lang.String name)
Method Detail |
public static junit.framework.Test suite()
public void testGetMetaData() throws java.lang.Exception
java.lang.Exception
public void testDateTime() throws java.lang.Exception
java.lang.Exception
public void testCharToReal() throws java.lang.Exception
java.lang.Exception
public void testCharToLong() throws java.lang.Exception
java.lang.Exception
public void testGetProcedures() throws java.lang.Exception
java.lang.Exception
public void testGetFloatObject() throws java.lang.Exception
java.lang.Exception
public void testSetFetchSize() throws java.lang.Exception
java.lang.Exception
public void testSetFetchDirectiion() throws java.lang.Exception
java.lang.Exception
public void testSetDateObject() throws java.lang.Exception
java.lang.Exception
public void testPrepStmtError() throws java.lang.Exception
java.lang.Exception
public void testSqlComments() throws java.lang.Exception
java.lang.Exception
public void testDateTimeFn() throws java.lang.Exception
java.lang.Exception
public void testStringFn() throws java.lang.Exception
java.lang.Exception
public void testNestedEscapes() throws java.lang.Exception
java.lang.Exception
public void testConversionToLongvarchar() throws java.sql.SQLException
java.sql.SQLException
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |