Package org.apache.torque.om.mapper
Class ObjectListMapperTest
java.lang.Object
org.apache.torque.BaseTestCase
org.apache.torque.MockBaseTestCase
org.apache.torque.om.mapper.ObjectListMapperTest
-
Field Summary
Fields inherited from class org.apache.torque.MockBaseTestCase
closeableFields inherited from class org.apache.torque.BaseTestCase
CONFIG_FILE, database, databaseMap, databaseMysql, databaseOracle, databasePostgresql, integerColumnMap, stringColumnMap, stringColumnMap2, stringColumnMap3, tableMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()Re-Initialize Torque and fill supplied data.voidTests the byte null for empty resultvoidTests the double null for empty resultvoidTests the float null for empty resultvoidTests the integer null for empty resultvoidTests the long null for empty resultvoidTests the processRow method for a mapper with a fixed column count.voidTests the processRow method for a mapper with a fixed column count.voidTests the processRow method for a mapper where the length is determined from the Metadata.voidTests the processRow method for a mapper with offset where the length is determined from the Metadata.voidTests the processRow method if the resultSet throws a SqlException.voidTests the short null for empty resultvoidTests the processRow method if the resultSet throws a SqlException.
-
Constructor Details
-
ObjectListMapperTest
public ObjectListMapperTest()
-
-
Method Details
-
setUp
Description copied from class:MockBaseTestCaseRe-Initialize Torque and fill supplied data. Subclasses which override setUp() must call super.setUp() as their first action.- Overrides:
setUpin classMockBaseTestCase- Throws:
Exception- if initialization fails.
-
testProcessRowLengthDeterminedFromMetadata
Tests the processRow method for a mapper where the length is determined from the Metadata.- Throws:
Exception- if the test fails
-
testProcessRowLengthDeterminedFromMetadataWithOffset
Tests the processRow method for a mapper with offset where the length is determined from the Metadata.- Throws:
Exception- if the test fails
-
testProcessRowLenghtAsArgument
Tests the processRow method for a mapper with a fixed column count.- Throws:
Exception- if the test fails
-
testProcessRowClassListAsArgument
Tests the processRow method for a mapper with a fixed column count.- Throws:
Exception- if the test fails
-
testProcessRowSqlException
Tests the processRow method if the resultSet throws a SqlException.- Throws:
Exception- if the test fails
-
testUnknownClass
Tests the processRow method if the resultSet throws a SqlException.- Throws:
Exception- if the test fails
-
testByteNull
Tests the byte null for empty result- Throws:
Exception- if the test fails
-
testShortNull
Tests the short null for empty result- Throws:
Exception- if the test fails
-
testIntegerNull
Tests the integer null for empty result- Throws:
Exception- if the test fails
-
testLongNull
Tests the long null for empty result- Throws:
Exception- if the test fails
-
testDoubleNull
Tests the double null for empty result- Throws:
Exception- if the test fails
-
testFloatNull
Tests the float null for empty result- Throws:
Exception- if the test fails
-