org.dbunit.database
Class DatabaseTableMetaDataTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.dbunit.DatabaseTestCase
              extended by org.dbunit.AbstractDatabaseTest
                  extended by org.dbunit.database.DatabaseTableMetaDataTest
All Implemented Interfaces:
junit.framework.Test

public class DatabaseTableMetaDataTest
extends AbstractDatabaseTest

Since:
Mar 14, 2002
Version:
$Revision: 912 $
Author:
Manuel Laflamme

Field Summary
 
Fields inherited from class org.dbunit.AbstractDatabaseTest
_connection, logger
 
Constructor Summary
DatabaseTableMetaDataTest(String s)
           
 
Method Summary
protected  IDataSet createDataSet()
           
 void testCaseSensitive()
           
 void testColumnDataType()
           
 void testColumnIsNullable()
           
 void testCreation_UnknownTable()
           
 void testGetColumnsForTablesMatchingSamePattern()
          Tests the pattern-like column retrieval from the database.
 void testGetNoColumns()
           
 void testGetNoPrimaryKeys()
           
 void testGetPrimaryKeys()
           
 void testUnsupportedColumnDataType()
           
 
Methods inherited from class org.dbunit.AbstractDatabaseTest
closeConnection, createOrderedTable, environmentHasFeature, getConnection, getDatabaseTester, getDataSet, getEnvironment, runTest, runTest, setUp, tearDown
 
Methods inherited from class org.dbunit.DatabaseTestCase
getSetUpOperation, getTearDownOperation, newDatabaseTester
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabaseTableMetaDataTest

public DatabaseTableMetaDataTest(String s)
Method Detail

createDataSet

protected IDataSet createDataSet()
                          throws Exception
Throws:
Exception

testGetPrimaryKeys

public void testGetPrimaryKeys()
                        throws Exception
Throws:
Exception

testGetNoPrimaryKeys

public void testGetNoPrimaryKeys()
                          throws Exception
Throws:
Exception

testCreation_UnknownTable

public void testCreation_UnknownTable()
                               throws Exception
Throws:
Exception

testGetNoColumns

public void testGetNoColumns()
                      throws Exception
Throws:
Exception

testColumnIsNullable

public void testColumnIsNullable()
                          throws Exception
Throws:
Exception

testUnsupportedColumnDataType

public void testUnsupportedColumnDataType()
                                   throws Exception
Throws:
Exception

testColumnDataType

public void testColumnDataType()
                        throws Exception
Throws:
Exception

testGetColumnsForTablesMatchingSamePattern

public void testGetColumnsForTablesMatchingSamePattern()
                                                throws Exception
Tests the pattern-like column retrieval from the database. DbUnit should not interpret any table names as regex patterns.

Throws:
Exception

testCaseSensitive

public void testCaseSensitive()
                       throws Exception
Throws:
Exception


Copyright © 2002-2012. All Rights Reserved.