Package org.apache.torque.criteria

# Klasse CriterionTest

java.lang.Object
org.apache.torque.BaseTestCase
org.apache.torque.criteria.CriterionTest

public class CriterionTest extends BaseTestCase
Test for the Criterion class.

Version:
  $Id: CriterionTest.java 1917245 2024-04-21 14:06:23Z tv $

- ## Feldübersicht

  ### 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
  `CriterionTest()`

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `void`
  `testCopyConstructorCompositeCriterion()`
  Tests that a criterion is copied when being added as top level criterion using where (also tests and).
  `void`
  `testCopyConstructorSimpleCriterion()`
  Tests that a criterion is copied when being added as top level criterion using where (also tests and).
  `void`
  `testCopyConstructorSqlCriterion()`
  Tests that a criterion is copied when being added as top level criterion using where (also tests and).
  `void`
  `testCriterionAndedToCriterionGetsCopied()`
  Tests that a criterion is copied when being anded to a top level criterion.
  `void`
  `testCriterionAndedToTopLevelCriterionGetsCopied()`
  Tests that a criterion is copied when being anded to a top level criterion.
  `void`
  `testCriterionOredToCriterionGetsCopied()`
  Tests that a criterion is copied when being ored to a top level criterion.
  `void`
  `testCriterionOredToTopLevelCriterionGetsCopied()`
  Tests that a criterion is copied when being ored to a top level criterion.
  `void`
  `testHashCodeAndEquals()`
  `void`
  `testIsNullInCriterion()`
  Tests that a criterion is null checks TORQUE-363.
  `void`
  `testToStringCompositeCriterion()`
  `void`
  `testToStringSingleCriterion()`

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

  `setUp`

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

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

- ## Konstruktordetails

  - ### CriterionTest

    public CriterionTest()

- ## Methodendetails

  - ### testHashCodeAndEquals

    @Test public void testHashCodeAndEquals()

  - ### testToStringSingleCriterion

    @Test public void testToStringSingleCriterion()

  - ### testToStringCompositeCriterion

    @Test public void testToStringCompositeCriterion()

  - ### testIsNullInCriterion

    @Test public void testIsNullInCriterion()
    Tests that a criterion is null checks TORQUE-363.

  - ### testCriterionAndedToTopLevelCriterionGetsCopied

    @Test public void testCriterionAndedToTopLevelCriterionGetsCopied()
    Tests that a criterion is copied when being anded to a top level criterion. checks TORQUE-243.

  - ### testCriterionOredToTopLevelCriterionGetsCopied

    @Test public void testCriterionOredToTopLevelCriterionGetsCopied()
    Tests that a criterion is copied when being ored to a top level criterion. checks TORQUE-243.

  - ### testCriterionAndedToCriterionGetsCopied

    @Test public void testCriterionAndedToCriterionGetsCopied()
    Tests that a criterion is copied when being anded to a top level criterion. checks TORQUE-243.

  - ### testCriterionOredToCriterionGetsCopied

    @Test public void testCriterionOredToCriterionGetsCopied()
    Tests that a criterion is copied when being ored to a top level criterion. checks TORQUE-243.

  - ### testCopyConstructorSimpleCriterion

    @Test public void testCopyConstructorSimpleCriterion()
    Tests that a criterion is copied when being added as top level criterion using where (also tests and). checks TORQUE-243.

  - ### testCopyConstructorCompositeCriterion

    @Test public void testCopyConstructorCompositeCriterion()
    Tests that a criterion is copied when being added as top level criterion using where (also tests and). checks TORQUE-243.

  - ### testCopyConstructorSqlCriterion

    @Test public void testCopyConstructorSqlCriterion()
    Tests that a criterion is copied when being added as top level criterion using where (also tests and). checks TORQUE-243.