public class LookupCriteriaGeneratorImplTest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LookupCriteriaGeneratorImplTest.TestClass |
Constructor and Description |
---|
LookupCriteriaGeneratorImplTest() |
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
void |
testGenerateCriteria_BetweenDate()
Criteria for BETWEEN dates should range from the start of the day on the lower date to the end of the day on the
upper date.
|
void |
testGenerateCriteria_GreaterThanDate()
Criteria for GREATER THAN dates should be after the start of the day on the date.
|
void |
testGenerateCriteria_GreaterThanEqualDate()
Criteria for GREATER THAN OR EQUAL dates should be equal to or after the start of the day on the date.
|
void |
testGenerateCriteria_LessThanDate()
Criteria for LESS THAN dates should be before the start of the day on the date.
|
void |
testGenerateCriteria_LessThanEqualDate()
Criteria for LESS THAN OR EQUAL dates should be equal to or before the end of the day on the date.
|
void |
testGenerateCriteria_MultipleOr() |
public LookupCriteriaGeneratorImplTest()
public void testGenerateCriteria_MultipleOr() throws Exception
Exception
public void testGenerateCriteria_BetweenDate()
Since the end of the day is defined as the moment before the next day, then the range that should be checked is [1/1/2010,1/2/2010), or in SQL, approximately >=2010-01-01 00:00:00 AND <=2010-01-03 00:00:00.
public void testGenerateCriteria_GreaterThanEqualDate()
The value that should be checked is [1/1/2010,END_OF_TIME), or in SQL, >=2010-01-01 00:00:00.
public void testGenerateCriteria_LessThanEqualDate()
Since the end of the day is defined as the moment before the next day, then the value that should be checked is (BEGINNING_OF_TIME,1/2/2010), or in SQL, approximately <=2010-01-03 00:00:00.
public void testGenerateCriteria_GreaterThanDate()
The value that should be checked is >2010-01-01 00:00:00.
public void testGenerateCriteria_LessThanDate()
The value that should be checked is <2010-02-01 00:00:00.
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.