org.dbunit.dataset
Class AbstractTableTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.dbunit.dataset.AbstractTableTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CachedResultSetTableTest, DefaultTableTest, FlatXmlTableTest, ReplacementTableTest, ScrollableResultSetTableTest, SortedTableTest, XlsTableTest, XmlTableTest

public abstract class AbstractTableTest
extends junit.framework.TestCase

Since:
Feb 17, 2002
Version:
$Revision: 561 $
Author:
Manuel Laflamme

Field Summary
protected static int COLUMN_COUNT
           
protected  org.slf4j.Logger logger
           
protected static int ROW_COUNT
           
 
Constructor Summary
AbstractTableTest(String s)
           
 
Method Summary
protected abstract  ITable createTable()
          Creates a table having 6 row and 4 column where columns are named "COLUMN1, COLUMN2, COLUMN3, COLUMN4" and values are string follwing this template "row ? col ?"
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
abstract  void testGetMissingValue()
           
 void testGetRowCount()
           
 void testGetValue()
           
 void testGetValueAndNoSuchColumn()
           
 void testGetValueCaseInsensitive()
           
 void testGetValueRowBounds()
           
 void testTableMetaData()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, setUp, tearDown, 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

ROW_COUNT

protected static final int ROW_COUNT
See Also:
Constant Field Values

COLUMN_COUNT

protected static final int COLUMN_COUNT
See Also:
Constant Field Values

logger

protected final org.slf4j.Logger logger
Constructor Detail

AbstractTableTest

public AbstractTableTest(String s)
Method Detail

createTable

protected abstract ITable createTable()
                               throws Exception
Creates a table having 6 row and 4 column where columns are named "COLUMN1, COLUMN2, COLUMN3, COLUMN4" and values are string follwing this template "row ? col ?"

Throws:
Exception

testGetRowCount

public void testGetRowCount()
                     throws Exception
Throws:
Exception

testTableMetaData

public void testTableMetaData()
                       throws Exception
Throws:
Exception

testGetValue

public void testGetValue()
                  throws Exception
Throws:
Exception

testGetValueCaseInsensitive

public void testGetValueCaseInsensitive()
                                 throws Exception
Throws:
Exception

testGetMissingValue

public abstract void testGetMissingValue()
                                  throws Exception
Throws:
Exception

testGetValueRowBounds

public void testGetValueRowBounds()
                           throws Exception
Throws:
Exception

testGetValueAndNoSuchColumn

public void testGetValueAndNoSuchColumn()
                                 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


Copyright © 2002-2012. All Rights Reserved.