Klasse AggregateFunctionTest

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.torque.util.functions.AggregateFunctionTest
Alle implementierten Schnittstellen:
junit.framework.Test

public class AggregateFunctionTest extends junit.framework.TestCase
Tests the AggregateFunction class.
Version:
$Id: AggregateFunctionTest.java 1917245 2024-04-21 14:06:23Z tv $
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    Tests the aggregateFunction constructor without distinct returns the correct SQL.
    void
    Tests the aggregateFunction constructor with distinct returns the correct SQL.
    void
    Tests the getColumnName method always returns null.
    void
    Tests that getArgument(0) returns the column.
    void
    Tests the getFullTableName method returns the fullTableName of the column argument.
    void
    Tests the getSchemaName method returns the schema of the column argument.
    void
    Tests that getArgument(1) returns the distinct value.
    void
    Tests that getArguments and SetArguments work
    void
    Tests the getTableName method returns the table of the column argument.
    void
    Tests that getArgument(2) returns null.
    void
    Tests that setColumn cannot be called with a null value.
    void
    Tests that setFunction works

    Von Klasse geerbte Methoden junit.framework.TestCase

    assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Konstruktordetails

    • AggregateFunctionTest

      public AggregateFunctionTest()
  • Methodendetails

    • testAggregateFunction

      public void testAggregateFunction()
      Tests the aggregateFunction constructor without distinct returns the correct SQL.
    • testAggregateFunctionWithDistinct

      public void testAggregateFunctionWithDistinct()
      Tests the aggregateFunction constructor with distinct returns the correct SQL.
    • testSetFunction

      public void testSetFunction()
      Tests that setFunction works
    • testGetSetArguments

      public void testGetSetArguments()
      Tests that getArguments and SetArguments work
    • testGetFirstArgument

      public void testGetFirstArgument()
      Tests that getArgument(0) returns the column.
    • testGetSecondArgument

      public void testGetSecondArgument()
      Tests that getArgument(1) returns the distinct value.
    • testGetThirdArgument

      public void testGetThirdArgument()
      Tests that getArgument(2) returns null.
    • testSetColumnNull

      public void testSetColumnNull()
      Tests that setColumn cannot be called with a null value.
    • testGetColumnName

      public void testGetColumnName()
      Tests the getColumnName method always returns null. This is because the function has no real column name.
    • testGetTableName

      public void testGetTableName()
      Tests the getTableName method returns the table of the column argument.
    • testGetFullTableName

      public void testGetFullTableName()
      Tests the getFullTableName method returns the fullTableName of the column argument.
    • testGetSchemaName

      public void testGetSchemaName()
      Tests the getSchemaName method returns the schema of the column argument.