|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.torque.BaseTestCase
org.apache.torque.util.CriteriaTest
public class CriteriaTest
Test class for Criteria.
Field Summary |
---|
Fields inherited from class org.apache.torque.BaseTestCase |
---|
CONFIG_FILE, database, databaseMap, databaseMysql, databaseOracle, databasePostgresql, integerColumnMap, stringColumnMap, tableMap |
Constructor Summary | |
---|---|
CriteriaTest()
|
Method Summary | |
---|---|
void |
setUp()
Initializes the criteria. |
void |
testAddDate()
testcase for addDate() |
void |
testAddString()
Test basic adding of strings. |
void |
testAndDate()
testcase for andDate() issue TORQUE-42 |
void |
testBetweenCriterion()
Tests <= and =>. |
void |
testBoolean()
Test that true is evaluated correctly. |
void |
testCriteriaOffsetLimit()
|
void |
testCriteriaToStringLimit()
|
void |
testCriteriaWithOffsetNoLimitMysql()
TORQUE-87 |
void |
testCriteriaWithOffsetNoLimitPostgresql()
|
void |
testCriterionIgnoreCase()
Test Criterion.setIgnoreCase(). |
void |
testCurrentDate()
|
void |
testCurrentTime()
|
void |
testDateAdd()
testcase for add(Date) |
void |
testEquals()
Test that Criteria.equals(Object) works correctly for a simple
Criteria object. |
void |
testLikeWithoutWildcards()
This test case verifies if the Criteria.LIKE comparison type will get replaced through Criteria.EQUAL if there are no SQL wildcards in the given value. |
void |
testNestedCriterion()
test various properties of Criterion and nested criterion |
void |
testNotLikeWithoutWildcards()
This test case verifies if the Criteria.NOT_LIKE comparison type will get replaced through Criteria.NOT_EQUAL if there are no SQL wildcards in the given value. |
void |
testOrderBy()
Checks whether orderBy works. |
void |
testSerialization()
Test that serialization works. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
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, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CriteriaTest()
Method Detail |
---|
public void setUp() throws Exception
setUp
in class BaseTestCase
Exception
- if initialisation fails.public void testAddString()
public void testNestedCriterion() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void testBetweenCriterion() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void testCriterionIgnoreCase() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void testBoolean() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void testAddDate() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void testAndDate() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void testDateAdd() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void testCurrentDate() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void testCurrentTime() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void testCriteriaOffsetLimit() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void testCriteriaWithOffsetNoLimitPostgresql() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void testCriteriaWithOffsetNoLimitMysql() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void testCriteriaToStringLimit() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void testLikeWithoutWildcards() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void testNotLikeWithoutWildcards()
public void testSerialization()
public void testEquals() throws org.apache.torque.TorqueException
Criteria.equals(Object)
works correctly for a simple
Criteria object.
org.apache.torque.TorqueException
public void testOrderBy() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |