public class ScheduleTest
extends junit.framework.TestCase
Modifier and Type | Field and Description |
---|---|
static TimeZone |
gmtTz |
static TimeZone |
jstTz |
static TimeZone |
pstTz |
static TimeZone |
sgtTz |
static Time |
time0000 |
static Time |
time0233 |
static Time |
time0827 |
static Time |
time1600 |
static int |
weekdays |
Constructor and Description |
---|
ScheduleTest(String name) |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
assertEquals(Calendar c1,
Calendar c2) |
(package private) static void |
assertEquals(Calendar expected,
Date actual) |
(package private) static void |
assertEquals(Date expected,
Calendar actual) |
(package private) static void |
assertEquals(int year,
int month,
int day,
String dow,
int hour,
int minute,
Date actual) |
(package private) static void |
assertScheduleCount(Schedule schedule,
Date d,
Date last,
int expectedCount) |
void |
testDaily() |
void |
testDailyNoUpperLimit() |
void |
testDailyPeriodic() |
void |
testMonthlyByDay() |
void |
testMonthlyByDayPeriodic() |
void |
testMonthlyByWeek() |
void |
testOnce() |
void |
testOnceTimeSchedule() |
void |
testTimeZone() |
void |
testTimeZoneChange() |
void |
testWeekly() |
void |
testWeeklyBadBitmapFails() |
void |
testWeeklyEmptyBitmapFails() |
(package private) static Date |
toDate(int year,
int month,
int day,
String dow,
int hour,
int minute) |
(package private) static Date |
toDate(int year,
int month,
int day,
String dow,
int hour,
int minute,
TimeZone tz) |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
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
public static final Time time0827
public static final Time time1600
public static final Time time0000
public static final Time time0233
public static final TimeZone gmtTz
public static final TimeZone pstTz
public static final TimeZone jstTz
public static final TimeZone sgtTz
public static final int weekdays
public ScheduleTest(String name)
static void assertEquals(int year, int month, int day, String dow, int hour, int minute, Date actual)
static void assertScheduleCount(Schedule schedule, Date d, Date last, int expectedCount)
static Date toDate(int year, int month, int day, String dow, int hour, int minute, TimeZone tz)
public void testOnceTimeSchedule()
public void testOnce()
public void testDaily()
public void testDailyNoUpperLimit()
public void testDailyPeriodic()
public void testWeeklyEmptyBitmapFails()
public void testWeeklyBadBitmapFails()
public void testWeekly()
public void testMonthlyByDay()
public void testMonthlyByDayPeriodic()
public void testMonthlyByWeek()
public void testTimeZone()
public void testTimeZoneChange()