jxUtil 0.6

org.sourceforge.jxutil.dbtest.universal
Class BatchUpdateTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.sourceforge.jxutil.dbtest.DatabaseTest
                    |
                    +--org.sourceforge.jxutil.dbtest.universal.BatchUpdateTest
All Implemented Interfaces:
Test

public final class BatchUpdateTest
extends DatabaseTest

Test batch updates against Statement/PreparedStatement/CallableStatement. CallableStatement is not tested yet, as there is no universal function to call across platforms.


Nested Class Summary
 
Nested classes inherited from class org.sourceforge.jxutil.dbtest.DatabaseTest
DatabaseTest.ColumnDef, DatabaseTest.TableDef
 
Field Summary
private static Category cat
           
private 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
BatchUpdateTest(String name)
           
 
Method Summary
 void setUpDB()
           
 void tearDownDB()
           
 void testBadBatchUpdate()
          Test batch update against a Statement instance with bad parameter arguments.
 void testBadBatchUpdateTrans()
           
 void testBatchUpdate()
          Test batch update against a Statement instance.
 void testBatchUpdateTrans()
           
 void testPreparedBatchUpdate()
          Test batch update against a PreparedStatement instance.
 void testPreparedBatchUpdateTrans()
           
 
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 final Category cat

TABLE_NAME

private static final String TABLE_NAME
See Also:
Constant Field Values

TABLE1

private static final DatabaseTest.TableDef TABLE1
Constructor Detail

BatchUpdateTest

public BatchUpdateTest(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

testBadBatchUpdate

public void testBadBatchUpdate()
                        throws SQLException
Test batch update against a Statement instance with bad parameter arguments.

SQLException

testBadBatchUpdateTrans

public void testBadBatchUpdateTrans()
                             throws SQLException
SQLException

testBatchUpdate

public void testBatchUpdate()
                     throws SQLException
Test batch update against a Statement instance.

SQLException

testBatchUpdateTrans

public void testBatchUpdateTrans()
                          throws SQLException
SQLException

testPreparedBatchUpdate

public void testPreparedBatchUpdate()
                             throws SQLException
Test batch update against a PreparedStatement instance.

SQLException

testPreparedBatchUpdateTrans

public void testPreparedBatchUpdateTrans()
                                  throws SQLException
SQLException

jxUtil 0.6

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