Package org.apache.torque
Class BaseTestCase
java.lang.Object
org.apache.torque.BaseTestCase
- Direct Known Subclasses:
ColumnMapTest,ComboKeyTest,CriteriaTest,CriterionTest,JoinTest,MockBaseTestCase,NumberKeyTest,QueryTest,SqlBuilderTest,SummaryHelperTest,TorqueInstanceTest,UniqueListTest
Base functionality to be extended by all Torque test cases. Test
case implementations are used to automate unit testing via JUnit.
- Version:
- $Id: BaseTestCase.java 1867515 2019-09-25 15:02:03Z gk $
- Author:
- Daniel Rall, Christopher Elkins
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe path to the configuration file.protected DatabaseA Reference to the postgresql (default) database.protected DatabaseMapA pre-filled database map.protected DatabaseA Reference to the mysql database.protected DatabaseA Reference to the oracle database.protected DatabaseA Reference to the postgresql (default) database.protected ColumnMapA pre-filled Integer column map.protected ColumnMapA pre-filled String column map.protected ColumnMapA pre-filled String column map.protected ColumnMapA pre-filled String column map.protected TableMapA pre-filled table map. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CONFIG_FILE
The path to the configuration file.- See Also:
-
tableMap
A pre-filled table map. -
databaseMap
A pre-filled database map. -
database
A Reference to the postgresql (default) database. -
databasePostgresql
A Reference to the postgresql (default) database. -
databaseMysql
A Reference to the mysql database. -
databaseOracle
A Reference to the oracle database. -
stringColumnMap
A pre-filled String column map. -
stringColumnMap2
A pre-filled String column map. -
stringColumnMap3
A pre-filled String column map. -
integerColumnMap
A pre-filled Integer column map.
-
-
Constructor Details
-
BaseTestCase
public BaseTestCase()
-
-
Method Details
-
setUp
Re-Initialize Torque and fill supplied data. Subclasses which override setUp() must call super.setUp() as their first action.- Throws:
Exception- if initialization fails.
-