|
||||||||||
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.TestBase | +--net.sourceforge.jtds.test.ResultSetTest
Fields inherited from class net.sourceforge.jtds.test.TestBase |
con, CONNECTION_PROPERTIES, props |
Fields inherited from class junit.framework.TestCase |
fName |
Constructor Summary | |
ResultSetTest(java.lang.String name)
|
Method Summary | |
static void |
main(java.lang.String[] args)
|
void |
testAbsoluteMinusOne()
Test that absolute(-1) works the same as last() . |
void |
testCursorFetch()
Test the behavior of sp_cursorfetch with fetch sizes
greater than 1. |
void |
testCursorMaxRows()
Test that Statement.setMaxRows() works on cursor
ResultSet s. |
void |
testCursorPrevious()
Test that ResultSet.previous() works correctly on cursor
ResultSet s. |
void |
testCursorWarning()
Test for bug [1022445] Cursor downgrade warning not raised. |
void |
testDeleteRowMarksDeleted()
Test that deleted rows are not removed but rather marked as deleted. |
void |
testEmptyInsertRow()
Test that insertRow() works with no values set. |
void |
testGetByName()
Test whether retrieval by name returns the first occurence (that's what the spec requires). |
void |
testGetObject1()
Test BIT data type. |
void |
testGetObject2()
Test TINYINT data type. |
void |
testGetObject3()
Test SMALLINT data type. |
void |
testGetObject4()
Test INT data type. |
void |
testGetObject5()
Test BIGINT data type. |
void |
testInsertRowVisible()
Test that inserted rows are visible in a scroll sensitive ResultSet and that they show up at the end. |
void |
testMoreThan255Columns()
Test if COL_INFO packets are processed correctly for ResultSet s with over 255 columns. |
void |
testOutOfMemory()
Test the behavior of the ResultSet/Statement/Connection when the JVM runs out of memory (hopefully) in the middle of a packet. |
void |
testRelative()
Test for bug [1182066] regression bug resultset: relative() not working as expected. |
void |
testResultSetColumnName1()
Test for bug [1009233] ResultSet getColumnName, getColumnLabel return wrong values |
void |
testResultSetMetaData()
Test for fixed bugs in ResultSetMetaData: isNullable() always returns columnNoNulls. |
void |
testResultSetScroll1()
Test for bug [961594] ResultSet. |
void |
testResultSetScroll2()
Test for bug [945462] getResultSet() return null if you use scrollable/updatable. |
void |
testResultSetScroll3()
Test for bug [1028881] statement.execute() causes wrong ResultSet type. |
void |
testResultSetUpdate1()
Test for bug [1008208] 0.9-rc1 updateNull doesn't work. |
void |
testSetObjectScale()
Test for bug [1075977] setObject() causes SQLException. |
void |
testUnicodeStream()
Test that read() works ok on the stream returned by
ResultSet.getUnicodeStream() (i.e. |
void |
testUpdateRowDuplicatesRow()
Test that updated rows are marked as deleted and the new values inserted at the end of the ResultSet if the primary key is updated. |
void |
testUpdateRowNoChanges()
Test for bug [1170777] resultSet.updateRow() fails if no row has been changed. |
void |
testUpdateRowUpdatesRow()
Test that updated rows are modified in place if the primary key is not updated. |
Methods inherited from class net.sourceforge.jtds.test.TestBase |
compareInputStreams, compareReaders, connect, disconnect, dump, dumpRow, getConnection, initLanguage, loadProperties, makeObjects, makeTestTables, setUp, showWarnings, 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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public ResultSetTest(java.lang.String name)
Method Detail |
public void testGetObject1() throws java.lang.Exception
public void testGetObject2() throws java.lang.Exception
public void testGetObject3() throws java.lang.Exception
public void testGetObject4() throws java.lang.Exception
public void testGetObject5() throws java.lang.Exception
public void testResultSetScroll1() throws java.lang.Exception
public void testResultSetScroll2() throws java.lang.Exception
public void testResultSetScroll3() throws java.lang.Exception
public void testResultSetUpdate1() throws java.lang.Exception
public void testResultSetColumnName1() throws java.lang.Exception
public void testResultSetMetaData() throws java.lang.Exception
java.lang.Exception
- public void testCursorWarning() throws java.lang.Exception
public void testGetByName() throws java.lang.Exception
public void testMoreThan255Columns() throws java.lang.Exception
ResultSet
s with over 255 columns.public void testEmptyInsertRow() throws java.lang.Exception
insertRow()
works with no values set.public void testInsertRowVisible() throws java.lang.Exception
ResultSet
and that they show up at the end.public void testUpdateRowDuplicatesRow() throws java.lang.Exception
ResultSet
if the primary key is updated.public void testUpdateRowUpdatesRow() throws java.lang.Exception
public void testDeleteRowMarksDeleted() throws java.lang.Exception
public void testUpdateRowNoChanges() throws java.lang.Exception
public void testCursorFetch() throws java.lang.Exception
sp_cursorfetch
with fetch sizes
greater than 1.
Assertions tested:
ResultSet
the requested number of rows is returned,
starting with row 1 and the error code returned is non-zero (2).
public void testAbsoluteMinusOne() throws java.lang.Exception
absolute(-1)
works the same as last()
.public void testUnicodeStream() throws java.lang.Exception
read()
works ok on the stream returned by
ResultSet.getUnicodeStream()
(i.e. it doesn't always fill
the buffer, regardless of whether there's available data or not).public void testCursorMaxRows() throws java.lang.Exception
Statement.setMaxRows()
works on cursor
ResultSet
s.public void testSetObjectScale() throws java.lang.Exception
setObject()
causes SQLException.
Conversion of float
values to String
adds
grouping to the value, which cannot then be parsed.
public void testCursorPrevious() throws java.lang.Exception
ResultSet.previous()
works correctly on cursor
ResultSet
s.public void testOutOfMemory() throws java.sql.SQLException
public void testRelative() throws java.lang.Exception
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |