|
jxUtil 0.6 | ||||||||
| 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
|
+--org.sourceforge.jxutil.dbtest.DatabaseTest
|
+--org.sourceforge.jxutil.dbtest.universal.DBMetaDataTest
Check functionality of DatabaseMetaData.
| 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[] |
keyColumns
|
private static String[] |
keyProcedures
|
private static String[] |
keyTables
|
private static DatabaseTest.TableDef |
PK_ONE
A table with one primary key. |
private static DatabaseTest.TableDef |
PK_TWO
A table with compound primary key. |
| Fields inherited from class org.sourceforge.jxutil.dbtest.DatabaseTest |
conn, dbMeta |
| Fields inherited from class junit.framework.TestCase |
|
| Constructor Summary | |
DBMetaDataTest(String name)
Create the test instance. |
|
| Method Summary | |
private void |
assertAscending(String[] keys,
Comparable[] last,
Object[] current)
|
void |
setUpDB()
Set up the test's DB environment. |
void |
tearDownDB()
Tear down the test's DB environment. |
void |
testCatalogs()
Test DatabaseMetaData.getCatalogs. |
void |
testGetColumns()
Check DatabaseMetadata.getColumns. |
void |
testGetCrossReference()
Check DatabaseMetadata.getCrossReference |
void |
testGetProcedureColumns()
Check DatabaseMetadata.getProcedureColumns. |
void |
testGetProcedures()
Check DatabaseMetadata.getProcedures. |
void |
testGetTablePrivileges()
Check DatabaseMetadata.getTablePrivileges. |
void |
testGetTables()
Test DatabaseMetaData.getTableTypes, getTables. |
void |
testGetVersionColumns()
Check DatabaseMetadata.getVersionColumns. |
void |
testKeysIndex()
Check DatabaseMetadata.get{Primary, Exported, Imported}Keys, getColumnPrivileges, getIndexInfo, getBestRowIdentifier. |
void |
testPrimaryKey()
Test DatabaseMetaData.getPrimaryKey. |
void |
testSchemas()
Test DatabaseMetaData.getSchemas |
void |
testTableTypes()
Test DatabaseMetaData.getTableTypes. |
void |
testTypeInfo()
Test DatabaseMetaData.getTypeInfo. |
void |
testUDTs()
Test DatabaseMetaData.getUDTs |
| 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 |
private static final Category cat
private static final String[] keyColumns
private static final String[] keyProcedures
private static final String[] keyTables
private static final DatabaseTest.TableDef PK_ONE
private static final DatabaseTest.TableDef PK_TWO
| Constructor Detail |
public DBMetaDataTest(String name)
name - the test name| Method Detail |
private void assertAscending(String[] keys,
Comparable[] last,
Object[] current)
public void setUpDB()
throws SQLException
setUpDB in class DatabaseTestSQLException - if a database error occurs
public void tearDownDB()
throws SQLException
tearDownDB in class DatabaseTestSQLException - if a database error occurs
public void testCatalogs()
throws SQLException
SQLException - if a database error occurs
public void testGetColumns()
throws SQLException
SQLException - if a database error occurs
public void testGetCrossReference()
throws SQLException
SQLException - if a database error occurs
public void testGetProcedureColumns()
throws SQLException
SQLException - if a database error occurs
public void testGetProcedures()
throws SQLException
SQLException - if a database error occurs
public void testGetTablePrivileges()
throws SQLException
SQLException - if a database error occurs
public void testGetTables()
throws SQLException
SQLException - if a database error occurs
public void testGetVersionColumns()
throws SQLException
SQLException - if a database error occurs
public void testKeysIndex()
throws SQLException
SQLException - if a database error occurs
public void testPrimaryKey()
throws SQLException
SQLException - if a database error occurs
public void testSchemas()
throws SQLException
SQLException - if a database error occurs
public void testTableTypes()
throws SQLException
SQLException - if a database error occurs
public void testTypeInfo()
throws SQLException
SQLException - if a database error occurs
public void testUDTs()
throws SQLException
SQLException - if a database error occurs
|
jxUtil 0.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||