|
|||||||||||
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.TimestampTest
test getting timestamps from the database.
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 | |
TimestampTest(java.lang.String name)
|
Method Summary | |
(package private) java.lang.Object[][] |
getDatatypes()
|
long |
getTimeInMs(java.sql.ResultSet rs)
Java 1.3 Timestamp.getDate() does not add the nano seconds to the millisecond value returned. |
static void |
main(java.lang.String[] args)
|
void |
test1899Date()
Test for bug [1234531] Dates before 01/01/1900 broken due to DateTime value markers. |
void |
testBigint0000()
|
void |
testBlob0021()
|
void |
testBug638()
Test for bug #638, preparedStatement.setTimestamp sets seconds to 0. |
void |
testConnection0038()
|
void |
testConnection0039()
|
void |
testDateEscaping()
Test for bug #541, data type mismatch when using date/time/timestamp JDBC escapes. |
void |
testDateRange()
Regression test for bug #632, valid DATE values range from 0001-01-01 to 9999-12-31. |
void |
testDateTimeConversion()
Test conversion between DATETIME, DATE and TIME. |
void |
testDateTimeDegeneration()
Test for bug [2508201], date field is changed by 3 milliseconds. |
void |
testDatetimeRounding1()
Test for bug [994916] datetime decoding in TdsData.java |
void |
testDatetimeRounding10()
Test for bug [994916] datetime decoding in TdsData.java |
void |
testDatetimeRounding2()
Test for bug [994916] datetime decoding in TdsData.java |
void |
testDatetimeRounding3()
Test for bug [994916] datetime decoding in TdsData.java |
void |
testDatetimeRounding4()
Test for bug [994916] datetime decoding in TdsData.java |
void |
testDatetimeRounding5()
Test for bug [994916] datetime decoding in TdsData.java |
void |
testDatetimeRounding6()
Test for bug [994916] datetime decoding in TdsData.java |
void |
testDatetimeRounding7()
Test for bug [994916] datetime decoding in TdsData.java |
void |
testDatetimeRounding8()
Test for bug [994916] datetime decoding in TdsData.java |
void |
testDatetimeRounding9()
Test for bug [994916] datetime decoding in TdsData.java |
void |
testDayOfWeek()
Test for bug [1226210] {fn dayofweek()} depends on the language. |
void |
testDecimalConversion0058()
|
void |
testEmptyResults0011()
|
void |
testEmptyResults0012()
|
void |
testEmptyResults0013()
|
void |
testEra()
Test for bugs [2181003]/[2349058], an attempt to set a BC date invalidates driver state/DateTime allows invalid dates through. |
void |
testErrors0036()
|
void |
testEscape(java.lang.String sql,
java.lang.String expected)
|
void |
testEscapes0006()
|
void |
testForBrowse0014()
|
void |
testGetBoolean0025()
|
void |
testGetString()
Test for bug [1235845] getTimestamp() returns illegal value after getString(). |
void |
testMetaData0046()
|
void |
testMissingParameter0016()
|
void |
testMultipleResults0015()
|
void |
testNestedStatements0022()
|
void |
testNestedStatements0026()
SAfe Tests whether cursor-based statements still work ok when nested. |
void |
testOutputParams()
|
void |
testPreparedStatement0007()
|
void |
testPreparedStatement0008()
|
void |
testPreparedStatement0009()
|
void |
testPreparedStatement0040()
|
void |
testPreparedStatement0041()
|
void |
testPreparedStatement0042()
|
void |
testPreparedTimestampEscaping()
Test for bug #541, data type mismatch when using date/time/timestamp JDBC escapes. |
void |
testPrimaryKeyFloat0023()
|
void |
testPrimaryKeyReal0024()
|
void |
testResultSet0043()
|
void |
testResultSet0044()
|
void |
testResultSet0045()
|
void |
testStatements0020()
|
void |
testTimeEscaping()
Test for bug #541, data type mismatch when using date/time/timestamp JDBC escapes. |
void |
testTimestampEscaping()
Test for bug #541, data type mismatch when using date/time/timestamp JDBC escapes. |
void |
testTimestampRange()
Test for bug [1040475] Possible bug when converting to and from datetime. |
void |
testTimestamps0001()
|
void |
testTimestamps0004()
|
void |
testTimestamps0037()
|
void |
testTimestamps0047()
|
void |
testTimestamps0048()
|
void |
testTimestampTimeZone()
Test for bug [1036059] getTimestamp with Calendar applies tzone offset wrong way. |
void |
testTransactions0010()
|
void |
testWriteDate()
Test that java.sql.Date objects are inserted and retrieved
correctly (ie no time component). |
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 TimestampTest(java.lang.String name)
Method Detail |
public void testBug638() throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)
public void testDateRange() throws java.lang.Exception
Regression test for bug #632, valid DATE values range from 0001-01-01 to 9999-12-31.
java.lang.Exception
public void testBigint0000() throws java.lang.Exception
java.lang.Exception
public void testTimestamps0001() throws java.lang.Exception
java.lang.Exception
public void testTimestamps0004() throws java.lang.Exception
java.lang.Exception
public void testEscape(java.lang.String sql, java.lang.String expected) throws java.lang.Exception
java.lang.Exception
public void testEscapes0006() throws java.lang.Exception
java.lang.Exception
public void testPreparedStatement0007() throws java.lang.Exception
java.lang.Exception
public void testPreparedStatement0008() throws java.lang.Exception
java.lang.Exception
public void testPreparedStatement0009() throws java.lang.Exception
java.lang.Exception
public void testTransactions0010() throws java.lang.Exception
java.lang.Exception
public void testEmptyResults0011() throws java.lang.Exception
java.lang.Exception
public void testEmptyResults0012() throws java.lang.Exception
java.lang.Exception
public void testEmptyResults0013() throws java.lang.Exception
java.lang.Exception
public void testForBrowse0014() throws java.lang.Exception
java.lang.Exception
public void testMultipleResults0015() throws java.lang.Exception
java.lang.Exception
public void testMissingParameter0016() throws java.lang.Exception
java.lang.Exception
java.lang.Object[][] getDatatypes()
public void testOutputParams() throws java.lang.Exception
java.lang.Exception
public void testStatements0020() throws java.lang.Exception
java.lang.Exception
public void testBlob0021() throws java.lang.Exception
java.lang.Exception
public void testNestedStatements0022() throws java.lang.Exception
java.lang.Exception
public void testPrimaryKeyFloat0023() throws java.lang.Exception
java.lang.Exception
public void testPrimaryKeyReal0024() throws java.lang.Exception
java.lang.Exception
public void testGetBoolean0025() throws java.lang.Exception
java.lang.Exception
public void testNestedStatements0026() throws java.lang.Exception
testNestedStatements0022
, which tests
the same with plain (non-cursor-based) statements (and unfortunately
fails).
java.lang.Exception
- if an Exception occurs (very relevant, huh?)public void testErrors0036() throws java.lang.Exception
java.lang.Exception
public void testTimestamps0037() throws java.lang.Exception
java.lang.Exception
public void testConnection0038() throws java.lang.Exception
java.lang.Exception
public void testConnection0039() throws java.lang.Exception
java.lang.Exception
public void testPreparedStatement0040() throws java.lang.Exception
java.lang.Exception
public void testPreparedStatement0041() throws java.lang.Exception
java.lang.Exception
public void testPreparedStatement0042() throws java.lang.Exception
java.lang.Exception
public void testResultSet0043() throws java.lang.Exception
java.lang.Exception
public void testResultSet0044() throws java.lang.Exception
java.lang.Exception
public void testResultSet0045() throws java.lang.Exception
java.lang.Exception
public void testMetaData0046() throws java.lang.Exception
java.lang.Exception
public void testTimestamps0047() throws java.lang.Exception
java.lang.Exception
public void testTimestamps0048() throws java.lang.Exception
java.lang.Exception
public void testDecimalConversion0058() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding1() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding2() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding3() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding4() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding5() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding6() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding7() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding8() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding9() throws java.lang.Exception
java.lang.Exception
public void testDatetimeRounding10() throws java.lang.Exception
java.lang.Exception
public void testTimestampTimeZone() throws java.sql.SQLException
java.sql.SQLException
public void testTimestampRange() throws java.sql.SQLException
jTDS seems to accept dates outside the range accepted by SQL Server (i.e. 1753-9999).
java.sql.SQLException
public void testWriteDate() throws java.sql.SQLException
java.sql.Date
objects are inserted and retrieved
correctly (ie no time component).
java.sql.SQLException
public void testDayOfWeek() throws java.lang.Exception
java.lang.Exception
public void testGetString() throws java.sql.SQLException
java.sql.SQLException
public void test1899Date() throws java.lang.Exception
java.lang.Exception
public long getTimeInMs(java.sql.ResultSet rs) throws java.sql.SQLException
rs
- the result set returning the Timstamp value in column 1
long
.
java.sql.SQLException
public void testDateTimeDegeneration() throws java.lang.Exception
java.lang.Exception
public void testDateTimeConversion() throws java.lang.Exception
java.lang.Exception
public void testDateEscaping() throws java.sql.SQLException
java.sql.SQLException
public void testTimeEscaping() throws java.sql.SQLException
java.sql.SQLException
public void testTimestampEscaping() throws java.sql.SQLException
java.sql.SQLException
public void testPreparedTimestampEscaping() throws java.sql.SQLException
java.sql.SQLException
public void testEra() throws java.sql.SQLException
java.sql.SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |