|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.util.test.util.CalendarTestUtils
public final class CalendarTestUtils
Calendar utilities for test cases.
Field Summary | |
---|---|
static Date |
CONSTANT_DATE_1960_04_23 A constant date that points to 1960, 13rd of April. |
static Date |
CONSTANT_DATE_2008_06_02 A constant date that points to 2008, 2nd of June. |
Method Summary | |
---|---|
static Date |
createDate(int index) Creates a test date. |
static Date |
createDate(int day, int month, int year) Creates a test date. |
static Date |
createDateInFuture() Creates a date in the future of today. |
static Date |
createDateInFuture(Date date) Creates a date in the future of the given date. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Date CONSTANT_DATE_1960_04_23
public static final Date CONSTANT_DATE_2008_06_02
Method Detail |
---|
public static Date createDate(int index)
index
- adds this number of days to the first day of December, 2007.
public static Date createDate(int day, int month, int year)
day
- the say of month, starting with
1
.
month
- the month of the year, starting with
1
.
year
- the year of the test date.
public static Date createDateInFuture(Date date)
date
- the base date to create a date in the future.
public static Date createDateInFuture()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |