mondrian.util
Class ScheduleTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by mondrian.util.ScheduleTest
All Implemented Interfaces:
junit.framework.Test

public class ScheduleTest
extends junit.framework.TestCase


Field Summary
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 Summary
ScheduleTest(String name)
           
 
Method Summary
(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)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 

Field Detail

time0827

public static final Time time0827

time1600

public static final Time time1600

time0000

public static final Time time0000

time0233

public static final Time time0233

gmtTz

public static final TimeZone gmtTz

pstTz

public static final TimeZone pstTz

jstTz

public static final TimeZone jstTz

sgtTz

public static final TimeZone sgtTz

weekdays

public static final int weekdays
See Also:
Constant Field Values
Constructor Detail

ScheduleTest

public ScheduleTest(String name)
Method Detail

assertEquals

static void assertEquals(Calendar c1,
                         Calendar c2)

assertEquals

static void assertEquals(Date expected,
                         Calendar actual)

assertEquals

static void assertEquals(int year,
                         int month,
                         int day,
                         String dow,
                         int hour,
                         int minute,
                         Date actual)

assertEquals

static void assertEquals(Calendar expected,
                         Date actual)

assertScheduleCount

static void assertScheduleCount(Schedule schedule,
                                Date d,
                                Date last,
                                int expectedCount)

toDate

static Date toDate(int year,
                   int month,
                   int day,
                   String dow,
                   int hour,
                   int minute)

toDate

static Date toDate(int year,
                   int month,
                   int day,
                   String dow,
                   int hour,
                   int minute,
                   TimeZone tz)

testOnceTimeSchedule

public void testOnceTimeSchedule()

testOnce

public void testOnce()

testDaily

public void testDaily()

testDailyNoUpperLimit

public void testDailyNoUpperLimit()

testDailyPeriodic

public void testDailyPeriodic()

testWeeklyEmptyBitmapFails

public void testWeeklyEmptyBitmapFails()

testWeeklyBadBitmapFails

public void testWeeklyBadBitmapFails()

testWeekly

public void testWeekly()

testMonthlyByDay

public void testMonthlyByDay()

testMonthlyByDayPeriodic

public void testMonthlyByDayPeriodic()

testMonthlyByWeek

public void testMonthlyByWeek()

testTimeZone

public void testTimeZone()

testTimeZoneChange

public void testTimeZoneChange()

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads