Package org.apache.torque.util.functions
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 -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidTests the aggregateFunction constructor without distinct returns the correct SQL.voidTests the aggregateFunction constructor with distinct returns the correct SQL.voidTests the getColumnName method always returns null.voidTests that getArgument(0) returns the column.voidTests the getFullTableName method returns the fullTableName of the column argument.voidTests the getSchemaName method returns the schema of the column argument.voidTests that getArgument(1) returns the distinct value.voidTests that getArguments and SetArguments workvoidTests the getTableName method returns the table of the column argument.voidTests that getArgument(2) returns null.voidTests that setColumn cannot be called with a null value.voidTests that setFunction worksVon 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
-
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.
-