edu.sdsc.inca.util
Class CronScheduleTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.sdsc.inca.util.CronScheduleTest
All Implemented Interfaces:
junit.framework.Test

public class CronScheduleTest
extends junit.framework.TestCase

Basic tests to check for CronSchedule functionality.


Field Summary
protected static java.text.SimpleDateFormat sdf
           
 
Constructor Summary
CronScheduleTest()
           
 
Method Summary
 void testConstructors()
          Tests the class constructors.
 void testCronList()
          Tests the nextEvent method against a cron schedule w/lists.
 void testCronRange()
          Tests the nextEvent method against a cron schedule w/ranges.
 void testCronStep()
          Tests the nextEvent method against a cron schedule w/a step.
 void testDailyEvent()
          Tests the nextEvent method against a daily cron schedule.
 void testHourlyEvent()
          Tests the nextEvent method against an hourly cron schedule.
 void testMonthlyEvent()
          Tests the nextEvent method against a monthly cron schedule.
 void testParsers()
          Tests the static class parsers.
 void testWeeklyEvent()
          Tests the nextEvent method against a weekly cron schedule.
 void testYearlyEvent()
          Tests the nextEvent method against a yearly cron schedule.
 
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

sdf

protected static final java.text.SimpleDateFormat sdf
Constructor Detail

CronScheduleTest

public CronScheduleTest()
Method Detail

testConstructors

public void testConstructors()
Tests the class constructors.


testParsers

public void testParsers()
                 throws java.lang.Exception
Tests the static class parsers.

Throws:
java.lang.Exception

testHourlyEvent

public void testHourlyEvent()
                     throws java.lang.Exception
Tests the nextEvent method against an hourly cron schedule.

Throws:
java.lang.Exception

testDailyEvent

public void testDailyEvent()
                    throws java.lang.Exception
Tests the nextEvent method against a daily cron schedule.

Throws:
java.lang.Exception

testWeeklyEvent

public void testWeeklyEvent()
                     throws java.lang.Exception
Tests the nextEvent method against a weekly cron schedule.

Throws:
java.lang.Exception

testMonthlyEvent

public void testMonthlyEvent()
                      throws java.lang.Exception
Tests the nextEvent method against a monthly cron schedule.

Throws:
java.lang.Exception

testYearlyEvent

public void testYearlyEvent()
                     throws java.lang.Exception
Tests the nextEvent method against a yearly cron schedule.

Throws:
java.lang.Exception

testCronRange

public void testCronRange()
                   throws java.lang.Exception
Tests the nextEvent method against a cron schedule w/ranges.

Throws:
java.lang.Exception

testCronList

public void testCronList()
                  throws java.lang.Exception
Tests the nextEvent method against a cron schedule w/lists.

Throws:
java.lang.Exception

testCronStep

public void testCronStep()
                  throws java.lang.Exception
Tests the nextEvent method against a cron schedule w/a step.

Throws:
java.lang.Exception