Package org.apache.torque.util
Klasse BasePeerImplTest
java.lang.Object
org.apache.torque.BaseTestCase
org.apache.torque.MockBaseTestCase
org.apache.torque.util.BasePeerImplTest
Tests the class BasePeerImpl.
- Version:
- $Id: BasePeerImplTest.java 1917245 2024-04-21 14:06:23Z tv $
-
Feldübersicht
Von Klasse geerbte Felder org.apache.torque.MockBaseTestCase
closeableVon Klasse geerbte Felder org.apache.torque.BaseTestCase
CONFIG_FILE, database, databaseMap, databaseMysql, databaseOracle, databasePostgresql, integerColumnMap, stringColumnMap, stringColumnMap2, stringColumnMap3, tableMap -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidsetUp()Re-Initialize Torque and fill supplied data.voidtearDown()voidvoidChecks that doSelect does add Select Columns if an AsColumn was already added.voidvoidvoidCheck that Exception handling for doInsert works.voidCheck that a doInsert with a key generator works.voidCheck that a simple doInsert works.voidCheck that a doInsert with subselects works.voidCheck that a basic doSelect works.voidCheck that the fetch size gets set on the prepared statement when set in the criteria.voidChecks that doSelect ads the select columns if no select columns were already added.voidCheck that a doSelect with a query.voidCheck that a simple doUpdate works.voidCheck that a simple doUpdate works.voidCheck that executeStatements with a set of named replacements works.voidCheck that executeStatements with a set of named replacements works when the statement contains no replacements.
-
Konstruktordetails
-
BasePeerImplTest
public BasePeerImplTest()
-
-
Methodendetails
-
setUp
Beschreibung aus Klasse kopiert:MockBaseTestCaseRe-Initialize Torque and fill supplied data. Subclasses which override setUp() must call super.setUp() as their first action.- Setzt außer Kraft:
setUpin KlasseMockBaseTestCase- Löst aus:
Exception- if initialization fails.
-
tearDown
@AfterEach public void tearDown() -
testDoSelect
Check that a basic doSelect works.- Löst aus:
Exception- if the test fails.
-
testDoSelectWithQuery
Check that a doSelect with a query.- Löst aus:
Exception- if the test fails.
-
testAddSelectColumns
@Test public void testAddSelectColumns() -
testDoSelectNoSelectColumnsPresent
Checks that doSelect ads the select columns if no select columns were already added.- Löst aus:
Exception- if the test fails.
-
testAddSelectColumnsWithAsColumns
Checks that doSelect does add Select Columns if an AsColumn was already added.- Löst aus:
Exception- if the test fails.
-
testDoSelectAllFetchSize
Check that the fetch size gets set on the prepared statement when set in the criteria.- Löst aus:
Exception- if the test fails.
-
testDeleteWithQualifiedTableName
- Löst aus:
Exception
-
testDeleteWithError
- Löst aus:
Exception
-
testDoInsertWithoutKeygen
Check that a simple doInsert works.- Löst aus:
Exception- if the test fails.
-
testDoInsertWithSubselect
Check that a doInsert with subselects works.- Löst aus:
Exception- if the test fails.
-
testDoInsertWithException
Check that Exception handling for doInsert works.- Löst aus:
Exception- if the test fails.
-
testDoInsertWithKeygen
Check that a doInsert with a key generator works.- Löst aus:
Exception- if the test fails.
-
testDoUpdate
Check that a simple doUpdate works.- Löst aus:
Exception- if the test fails.
-
testDoUpdateWithPk
Check that a simple doUpdate works.- Löst aus:
Exception- if the test fails.
-
testExecuteStatementNamed
Check that executeStatements with a set of named replacements works.- Löst aus:
Exception- if the test fails.
-
testExecuteStatementNamedNoReplacements
Check that executeStatements with a set of named replacements works when the statement contains no replacements.- Löst aus:
Exception- if the test fails.
-