Package org.dbunit.dataset
Class AbstractTableTest
java.lang.Object
org.dbunit.dataset.AbstractTableTest
- Direct Known Subclasses:
CachedResultSetTableIT,DefaultTableTest,ScrollableResultSetTableTest,SortedTableTest,XlsTableTest,XmlTableTest,YmlTableTest
- Since:
- Feb 17, 2002
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected final org.slf4j.Loggerprotected static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringconvertString(String str) Returns the string converted as an identifier according to the metadata rules of the database environment.protected abstract ITableCreates a table having 6 row and 4 column where columns are named "COLUMN1, COLUMN2, COLUMN3, COLUMN4" and values are string follwing this template "row ?protected booleanThis method is used so sub-classes can disable the tests according to some characteristics of the environmentabstract voidprotected void
-
Field Details
-
ROW_COUNT
protected static final int ROW_COUNT- See Also:
-
COLUMN_COUNT
protected static final int COLUMN_COUNT- See Also:
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
AbstractTableTest
public AbstractTableTest()
-
-
Method Details
-
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 ?"- Throws:
Exception
-
convertString
Returns the string converted as an identifier according to the metadata rules of the database environment. Most databases convert all metadata identifiers to uppercase. PostgreSQL converts identifiers to lowercase. MySQL preserves case.- Parameters:
str- The identifier.- Returns:
- The identifier converted according to database rules.
- Throws:
Exception
-
testGetValue
- Throws:
Exception
-
testGetMissingValue
- Throws:
Exception
-
runTest
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
-