org.dbunit
Class AbstractDatabaseTesterTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.dbunit.AbstractDatabaseTesterTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractDatabaseTesterConnectionTest

public abstract class AbstractDatabaseTesterTest
extends junit.framework.TestCase

Since:
2.2.0
Version:
$Revision: 766 $ $Date: 2008-08-01 13:05:20 +0200 (Fri, 01 Aug 2008) $
Author:
Andres Almiray (aalmiray@users.sourceforge.net), Last changed by: $Author: gommma $

Field Summary
protected  IDatabaseConnection _connection
           
protected  IDatabaseTester _databaseTester
           
protected  org.slf4j.Logger logger
           
 
Constructor Summary
AbstractDatabaseTesterTest(String s)
           
 
Method Summary
protected  ITable createOrderedTable(String tableName, String orderByColumn)
           
static boolean environmentHasFeature(TestFeature feature)
           
protected abstract  IDatabaseTester getDatabaseTester()
           
protected  IDataSet getDataSet()
           
protected  DatabaseEnvironment getEnvironment()
           
protected  DatabaseOperation getSetUpOperation()
           
protected  DatabaseOperation getTearDownOperation()
           
protected  void runTest()
           
protected  boolean runTest(String testName)
          This method is used so sub-classes can disable the tests according to some characteristics of the environment
protected  void setUp()
           
protected  void tearDown()
           
 
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
 

Field Detail

_connection

protected IDatabaseConnection _connection

_databaseTester

protected IDatabaseTester _databaseTester

logger

protected final org.slf4j.Logger logger
Constructor Detail

AbstractDatabaseTesterTest

public AbstractDatabaseTesterTest(String s)
Method Detail

getEnvironment

protected DatabaseEnvironment getEnvironment()
                                      throws Exception
Throws:
Exception

createOrderedTable

protected ITable createOrderedTable(String tableName,
                                    String orderByColumn)
                             throws Exception
Throws:
Exception

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

getDataSet

protected IDataSet getDataSet()
                       throws Exception
Throws:
Exception

getSetUpOperation

protected DatabaseOperation getSetUpOperation()

getTearDownOperation

protected DatabaseOperation getTearDownOperation()

getDatabaseTester

protected abstract IDatabaseTester getDatabaseTester()
                                              throws Exception
Throws:
Exception

runTest

protected boolean runTest(String testName)
This method is used so sub-classes can disable the tests according to some characteristics of the environment

Parameters:
testName - name of the test to be checked
Returns:
flag indicating if the test should be executed or not

runTest

protected void runTest()
                throws Throwable
Overrides:
runTest in class junit.framework.TestCase
Throws:
Throwable

environmentHasFeature

public static boolean environmentHasFeature(TestFeature feature)


Copyright © 2002-2012. All Rights Reserved.