edu.sdsc.inca.depot.persistent
Class ScheduleTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.sdsc.inca.depot.persistent.PersistentTest
              extended by edu.sdsc.inca.depot.persistent.ScheduleTest
All Implemented Interfaces:
junit.framework.Test

public class ScheduleTest
extends PersistentTest

Basic tests to check for Schedule functionality.


Field Summary
protected static java.text.SimpleDateFormat sdf
           
 
Fields inherited from class edu.sdsc.inca.depot.persistent.PersistentTest
logger
 
Constructor Summary
ScheduleTest()
           
 
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 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 edu.sdsc.inca.depot.persistent.PersistentTest
setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

ScheduleTest

public ScheduleTest()
Method Detail

testConstructors

public void testConstructors()
Tests the class constructors.


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