Package org.apache.torque.util

# Klasse BasePeerImplTest

java.lang.Object
org.apache.torque.BaseTestCase
org.apache.torque.MockBaseTestCase
org.apache.torque.util.BasePeerImplTest

public class BasePeerImplTest extends MockBaseTestCase
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

  `closeable`

  ### Von Klasse geerbte Felder org.apache.torque.BaseTestCase

  `CONFIG_FILE, database, databaseMap, databaseMysql, databaseOracle, databasePostgresql, integerColumnMap, stringColumnMap, stringColumnMap2, stringColumnMap3, tableMap`

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `BasePeerImplTest()`

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `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.

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Konstruktordetails

  - ### BasePeerImplTest

    public BasePeerImplTest()

- ## Methodendetails

  - ### setUp

    @BeforeEach public void setUp() throws Exception
    Beschreibung aus Klasse kopiert: `MockBaseTestCase`
    Re-Initialize Torque and fill supplied data. Subclasses which override setUp() must call super.setUp() as their first action.
    Setzt außer Kraft:
      `setUp` in Klasse `MockBaseTestCase`
    Löst aus:
      `Exception` - if initialization fails.

  - ### tearDown

    @AfterEach public void tearDown()

  - ### testDoSelect

    @Test public void testDoSelect() throws Exception
    Check that a basic doSelect works.
    Löst aus:
      `Exception` - if the test fails.

  - ### testDoSelectWithQuery

    @Test public void testDoSelectWithQuery() throws Exception
    Check that a doSelect with a query.
    Löst aus:
      `Exception` - if the test fails.

  - ### testAddSelectColumns

    @Test public void testAddSelectColumns()

  - ### testDoSelectNoSelectColumnsPresent

    @Test public void testDoSelectNoSelectColumnsPresent() throws Exception
    Checks that doSelect ads the select columns if no select columns were already added.
    Löst aus:
      `Exception` - if the test fails.

  - ### testAddSelectColumnsWithAsColumns

    @Test public void testAddSelectColumnsWithAsColumns() throws Exception
    Checks that doSelect does add Select Columns if an AsColumn was already added.
    Löst aus:
      `Exception` - if the test fails.

  - ### testDoSelectAllFetchSize

    @Test public void testDoSelectAllFetchSize() throws Exception
    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

    @Test public void testDeleteWithQualifiedTableName() throws Exception
    Löst aus:
      `Exception`

  - ### testDeleteWithError

    @Test public void testDeleteWithError() throws Exception
    Löst aus:
      `Exception`

  - ### testDoInsertWithoutKeygen

    @Test public void testDoInsertWithoutKeygen() throws Exception
    Check that a simple doInsert works.
    Löst aus:
      `Exception` - if the test fails.

  - ### testDoInsertWithSubselect

    @Test public void testDoInsertWithSubselect() throws Exception
    Check that a doInsert with subselects works.
    Löst aus:
      `Exception` - if the test fails.

  - ### testDoInsertWithException

    @Test public void testDoInsertWithException() throws Exception
    Check that Exception handling for doInsert works.
    Löst aus:
      `Exception` - if the test fails.

  - ### testDoInsertWithKeygen

    @Test public void testDoInsertWithKeygen() throws Exception
    Check that a doInsert with a key generator works.
    Löst aus:
      `Exception` - if the test fails.

  - ### testDoUpdate

    @Test public void testDoUpdate() throws Exception
    Check that a simple doUpdate works.
    Löst aus:
      `Exception` - if the test fails.

  - ### testDoUpdateWithPk

    @Test public void testDoUpdateWithPk() throws Exception
    Check that a simple doUpdate works.
    Löst aus:
      `Exception` - if the test fails.

  - ### testExecuteStatementNamed

    @Test public void testExecuteStatementNamed() throws Exception
    Check that executeStatements with a set of named replacements works.
    Löst aus:
      `Exception` - if the test fails.

  - ### testExecuteStatementNamedNoReplacements

    @Test public void testExecuteStatementNamedNoReplacements() throws Exception
    Check that executeStatements with a set of named replacements works when the statement contains no replacements.
    Löst aus:
      `Exception` - if the test fails.