jxUtil 0.6

org.sourceforge.jxutil.dbtest.universal
Class ForeignKeyTest

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

public class ForeignKeyTest
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
           
private static String TABLE_NAME_1
           
private static String TABLE_NAME_2
           
private static DatabaseTest.TableDef TABLE1
           
private static DatabaseTest.TableDef TABLE2
           
 
Fields inherited from class org.sourceforge.jxutil.dbtest.DatabaseTest
conn, dbMeta
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ForeignKeyTest(String name)
           
 
Method Summary
private  void checkResult(ResultSet rs)
           
 void setUpDB()
           
 void tearDownDB()
           
 void testTable1CrossReference()
           
 void testTable1ExportedKeys()
           
 void testTable1ImportedKeys()
           
 void testTable2CrossReference()
           
 void testTable2ExportedKeys()
           
 void testTable2ImportedKeys()
           
 
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

TABLE_NAME_1

private static final String TABLE_NAME_1
See Also:
Constant Field Values

TABLE_NAME_2

private static final String TABLE_NAME_2
See Also:
Constant Field Values

TABLE1

private static final DatabaseTest.TableDef TABLE1

TABLE2

private static final DatabaseTest.TableDef TABLE2
Constructor Detail

ForeignKeyTest

public ForeignKeyTest(String name)
Method Detail

checkResult

private void checkResult(ResultSet rs)
                  throws SQLException
SQLException

setUpDB

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

tearDownDB

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

testTable1CrossReference

public void testTable1CrossReference()
                              throws SQLException
SQLException

testTable1ExportedKeys

public void testTable1ExportedKeys()
                            throws SQLException
SQLException

testTable1ImportedKeys

public void testTable1ImportedKeys()
                            throws SQLException
SQLException

testTable2CrossReference

public void testTable2CrossReference()
                              throws SQLException
SQLException

testTable2ExportedKeys

public void testTable2ExportedKeys()
                            throws SQLException
SQLException

testTable2ImportedKeys

public void testTable2ImportedKeys()
                            throws SQLException
SQLException

jxUtil 0.6

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