Package org.apache.torque.om.mapper
Class ObjectListMapperTest
- java.lang.Object
-
- org.apache.torque.BaseTestCase
-
- org.apache.torque.om.mapper.ObjectListMapperTest
-
public class ObjectListMapperTest extends BaseTestCase
-
-
Field Summary
-
Fields inherited from class org.apache.torque.BaseTestCase
CONFIG_FILE, database, databaseMap, databaseMysql, databaseOracle, databasePostgresql, integerColumnMap, stringColumnMap, stringColumnMap2, stringColumnMap3, tableMap
-
-
Constructor Summary
Constructors Constructor Description ObjectListMapperTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()Re-Initialize Torque and fill supplied data.voidtestByteNull()Tests the byte null for empty resultvoidtestDoubleNull()Tests the double null for empty resultvoidtestFloatNull()Tests the float null for empty resultvoidtestIntegerNull()Tests the integer null for empty resultvoidtestLongNull()Tests the long null for empty resultvoidtestProcessRowClassListAsArgument()Tests the processRow method for a mapper with a fixed column count.voidtestProcessRowLenghtAsArgument()Tests the processRow method for a mapper with a fixed column count.voidtestProcessRowLengthDeterminedFromMetadata()Tests the processRow method for a mapper where the length is determined from the Metadata.voidtestProcessRowLengthDeterminedFromMetadataWithOffset()Tests the processRow method for a mapper with offset where the length is determined from the Metadata.voidtestProcessRowSqlException()Tests the processRow method if the resultSet throws a SqlException.voidtestShortNull()Tests the short null for empty resultvoidtestUnknownClass()Tests the processRow method if the resultSet throws a SqlException.
-
-
-
Method Detail
-
setUp
@BeforeEach public void setUp() throws ExceptionDescription copied from class:BaseTestCaseRe-Initialize Torque and fill supplied data. Subclasses which override setUp() must call super.setUp() as their first action.- Overrides:
setUpin classBaseTestCase- Throws:
Exception- if initialization fails.
-
testProcessRowLengthDeterminedFromMetadata
@Test public void testProcessRowLengthDeterminedFromMetadata() throws ExceptionTests the processRow method for a mapper where the length is determined from the Metadata.- Throws:
Exception- if the test fails
-
testProcessRowLengthDeterminedFromMetadataWithOffset
@Test public void testProcessRowLengthDeterminedFromMetadataWithOffset() throws ExceptionTests the processRow method for a mapper with offset where the length is determined from the Metadata.- Throws:
Exception- if the test fails
-
testProcessRowLenghtAsArgument
@Test public void testProcessRowLenghtAsArgument() throws ExceptionTests the processRow method for a mapper with a fixed column count.- Throws:
Exception- if the test fails
-
testProcessRowClassListAsArgument
@Test public void testProcessRowClassListAsArgument() throws ExceptionTests the processRow method for a mapper with a fixed column count.- Throws:
Exception- if the test fails
-
testProcessRowSqlException
@Test public void testProcessRowSqlException() throws ExceptionTests the processRow method if the resultSet throws a SqlException.- Throws:
Exception- if the test fails
-
testUnknownClass
@Test public void testUnknownClass() throws ExceptionTests the processRow method if the resultSet throws a SqlException.- Throws:
Exception- if the test fails
-
testByteNull
@Test public void testByteNull() throws ExceptionTests the byte null for empty result- Throws:
Exception- if the test fails
-
testShortNull
@Test public void testShortNull() throws ExceptionTests the short null for empty result- Throws:
Exception- if the test fails
-
testIntegerNull
@Test public void testIntegerNull() throws ExceptionTests the integer null for empty result- Throws:
Exception- if the test fails
-
testLongNull
@Test public void testLongNull() throws ExceptionTests the long null for empty result- Throws:
Exception- if the test fails
-
testDoubleNull
@Test public void testDoubleNull() throws ExceptionTests the double null for empty result- Throws:
Exception- if the test fails
-
-