Package org.apache.torque.util.functions
Class AbstractFunctionTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.apache.torque.util.functions.AbstractFunctionTest
-
- All Implemented Interfaces:
junit.framework.Test
public class AbstractFunctionTest extends junit.framework.TestCaseTests the AggregateFunction class.- Version:
- $Id: AbstractFunctionTest.java 1839288 2018-08-27 09:48:33Z tv $
-
-
Constructor Summary
Constructors Constructor Description AbstractFunctionTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestAdArgument()Tests that addArgument worksvoidtestGetArgument()Tests that getArgument(0) returns the column.voidtestGetColumnName()Tests the getColumnName method always returns null.voidtestGetFullTableName()Tests the getFullTableName method returns the fullTableName of the column argument.voidtestGetFullTableNameDifferentTables()Tests the getFullTableName method returns null if different tables are encountered.voidtestGetSchemaName()Tests the getSchemaName method returns the schema of the column argument.voidtestGetSchemaNameDifferentTables()Tests the getSchemaName method returns null if different schemas are encountered.voidtestGetSetArgumentList()Tests that getArgumentList and SetArgumentList workvoidtestGetSetArguments()Tests that getArguments and SetArguments workvoidtestGetTableName()Tests the getTableName method returns the table of the column argument.voidtestGetTableNameDifferentTables()Tests the getTableName method returns null if different tables are encountered.-
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, tearDown, toString
-
-
-
-
Method Detail
-
setUp
public void setUp()
- Overrides:
setUpin classjunit.framework.TestCase
-
testGetSetArguments
public void testGetSetArguments()
Tests that getArguments and SetArguments work
-
testGetSetArgumentList
public void testGetSetArgumentList()
Tests that getArgumentList and SetArgumentList work
-
testAdArgument
public void testAdArgument()
Tests that addArgument works
-
testGetArgument
public void testGetArgument()
Tests that getArgument(0) returns the column.
-
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.
-
testGetTableNameDifferentTables
public void testGetTableNameDifferentTables()
Tests the getTableName method returns null if different tables are encountered.
-
testGetFullTableName
public void testGetFullTableName()
Tests the getFullTableName method returns the fullTableName of the column argument.
-
testGetFullTableNameDifferentTables
public void testGetFullTableNameDifferentTables()
Tests the getFullTableName method returns null if different tables are encountered.
-
testGetSchemaName
public void testGetSchemaName()
Tests the getSchemaName method returns the schema of the column argument.
-
testGetSchemaNameDifferentTables
public void testGetSchemaNameDifferentTables()
Tests the getSchemaName method returns null if different schemas are encountered.
-
-