Package org.apache.torque.util.functions
Class AggregateFunctionTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.apache.torque.util.functions.AggregateFunctionTest
-
- All Implemented Interfaces:
junit.framework.Test
public class AggregateFunctionTest extends junit.framework.TestCaseTests the AggregateFunction class.- Version:
- $Id: AggregateFunctionTest.java 1448414 2013-02-20 21:06:35Z tfischer $
-
-
Constructor Summary
Constructors Constructor Description AggregateFunctionTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestAggregateFunction()Tests the aggregateFunction constructor without distinct returns the correct SQL.voidtestAggregateFunctionWithDistinct()Tests the aggregateFunction constructor with distinct returns the correct SQL.voidtestGetColumnName()Tests the getColumnName method always returns null.voidtestGetFirstArgument()Tests that getArgument(0) returns the column.voidtestGetFullTableName()Tests the getFullTableName method returns the fullTableName of the column argument.voidtestGetSchemaName()Tests the getSchemaName method returns the schema of the column argument.voidtestGetSecondArgument()Tests that getArgument(1) returns the distinct value.voidtestGetSetArguments()Tests that getArguments and SetArguments workvoidtestGetTableName()Tests the getTableName method returns the table of the column argument.voidtestGetThirdArgument()Tests that getArgument(2) returns null.voidtestSetColumnNull()Tests that setColumn cannot be called with a null value.voidtestSetFunction()Tests that setFunction works-
Methods inherited from class 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
-
-
-
-
Method Detail
-
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.
-
-