public class BasePeerImplTest extends BaseTestCase
CONFIG_FILE, database, databaseMap, databaseMysql, databaseOracle, databasePostgresql, integerColumnMap, stringColumnMap, stringColumnMap2, stringColumnMap3, tableMap
Constructor and Description |
---|
BasePeerImplTest() |
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Re-Initialize Torque and fill supplied data.
|
void |
tearDown() |
void |
testAddSelectColumns() |
void |
testAddSelectColumnsWithAsColumns()
Checks that doSelect does add Select Columns if an AsColumn was already
added.
|
void |
testDeleteWithError() |
void |
testDeleteWithQualifiedTableName() |
void |
testDoInsertWithException()
Check that Exception handling for doInsert works.
|
void |
testDoInsertWithKeygen()
Check that a doInsert with a key generator works.
|
void |
testDoInsertWithoutKeygen()
Check that a simple doInsert works.
|
void |
testDoInsertWithSubselect()
Check that a doInsert with subselects works.
|
void |
testDoSelect()
Check that a basic doSelect works.
|
void |
testDoSelectAllFetchSize()
Check that the fetch size gets set on the prepared statement when
set in the criteria.
|
void |
testDoSelectNoSelectColumnsPresent()
Checks that doSelect ads the select columns if no select columns were
already added.
|
void |
testDoSelectWithQuery()
Check that a doSelect with a query.
|
void |
testDoUpdate()
Check that a simple doUpdate works.
|
void |
testDoUpdateWithPk()
Check that a simple doUpdate works.
|
void |
testExecuteStatementNamed()
Check that executeStatements with a set of named replacements works.
|
void |
testExecuteStatementNamedNoReplacements()
Check that executeStatements with a set of named replacements works when the statement contains no replacements.
|
@BeforeEach public void setUp() throws Exception
BaseTestCase
setUp
in class BaseTestCase
Exception
- if initialization fails.@AfterEach public void tearDown()
@Test public void testDoSelect() throws Exception
Exception
- if the test fails.@Test public void testDoSelectWithQuery() throws Exception
Exception
- if the test fails.@Test public void testAddSelectColumns()
@Test public void testDoSelectNoSelectColumnsPresent() throws Exception
Exception
- if the test fails.@Test public void testAddSelectColumnsWithAsColumns() throws Exception
Exception
- if the test fails.@Test public void testDoSelectAllFetchSize() throws Exception
Exception
- if the test fails.@Test public void testDeleteWithQualifiedTableName() throws Exception
Exception
@Test public void testDoInsertWithoutKeygen() throws Exception
Exception
- if the test fails.@Test public void testDoInsertWithSubselect() throws Exception
Exception
- if the test fails.@Test public void testDoInsertWithException() throws Exception
Exception
- if the test fails.@Test public void testDoInsertWithKeygen() throws Exception
Exception
- if the test fails.@Test public void testDoUpdate() throws Exception
Exception
- if the test fails.@Test public void testDoUpdateWithPk() throws Exception
Exception
- if the test fails.@Test public void testExecuteStatementNamed() throws Exception
Exception
- if the test fails.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.