jxUtil 0.6

org.sourceforge.jxutil.dbtest.universal
Class ResultSetTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.sourceforge.jxutil.dbtest.DatabaseTest
                    |
                    +--org.sourceforge.jxutil.dbtest.universal.ResultSetTest
All Implemented Interfaces:
Test
Direct Known Subclasses:
CachedRowSetTest

public class ResultSetTest
extends DatabaseTest


Nested Class Summary
 
Nested classes inherited from class org.sourceforge.jxutil.dbtest.DatabaseTest
DatabaseTest.ColumnDef, DatabaseTest.TableDef
 
Field Summary
private static Category cat
           
protected static int ROWS
           
protected static String SELECT_ALL
           
protected static String SELECT_EMPTY
           
protected static String SELECT_HALF
           
protected static String TABLE_NAME
           
private static DatabaseTest.TableDef TABLE1
           
 
Fields inherited from class org.sourceforge.jxutil.dbtest.DatabaseTest
conn, dbMeta
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ResultSetTest(String name)
           
 
Method Summary
 void setUpDB()
           
 void tearDownDB()
           
protected  void testData(ResultSet set)
           
protected  void testDataPlusTwo(ResultSet set)
           
protected  void testEmpty(ResultSet set)
           
protected  void testHalfData(ResultSet set, int ofs)
           
 void testPrepared()
           
protected  void testSeek(ResultSet set)
          Seek on a populated (at least two rows), scrollable resultSet
 void testStatement()
           
 
Methods inherited from class org.sourceforge.jxutil.dbtest.DatabaseTest
checkDataCols, checkDataRows, createTable, dropTable, dropTable, getColumnString, getType, isDBMS, isDriver, loadData, setConnection, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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
 

Field Detail

cat

private static Category cat

ROWS

protected static final int ROWS
See Also:
Constant Field Values

SELECT_ALL

protected static final String SELECT_ALL
See Also:
Constant Field Values

SELECT_EMPTY

protected static final String SELECT_EMPTY
See Also:
Constant Field Values

SELECT_HALF

protected static final String SELECT_HALF
See Also:
Constant Field Values

TABLE_NAME

protected static final String TABLE_NAME
See Also:
Constant Field Values

TABLE1

private static final DatabaseTest.TableDef TABLE1
Constructor Detail

ResultSetTest

public ResultSetTest(String name)
Method Detail

setUpDB

public void setUpDB()
             throws SQLException
Overrides:
setUpDB in class DatabaseTest
SQLException

tearDownDB

public void tearDownDB()
                throws SQLException
Overrides:
tearDownDB in class DatabaseTest
SQLException

testData

protected void testData(ResultSet set)
                 throws SQLException
SQLException

testDataPlusTwo

protected void testDataPlusTwo(ResultSet set)
                        throws SQLException
SQLException

testEmpty

protected void testEmpty(ResultSet set)
                  throws SQLException
SQLException

testHalfData

protected void testHalfData(ResultSet set,
                            int ofs)
                     throws SQLException
SQLException

testPrepared

public void testPrepared()
                  throws SQLException
SQLException

testSeek

protected void testSeek(ResultSet set)
                 throws SQLException
Seek on a populated (at least two rows), scrollable resultSet

SQLException

testStatement

public void testStatement()
                   throws SQLException
SQLException

jxUtil 0.6

Copyright © 2001,2002 Keve Müller, et al.; see LICENSE file for details.