\ChronosTest
Synopsis
class ChronosTest
extends SapphireTest
{
- // methods
- public void setUp()
- public void tearDown()
- public void clearTempFiles()
- public void getConfigFiles()
- public void testAddItemsUnGrouped()
- public void testAddValidation()
- public void testAddItemsGrouped()
- public void testInvalidRemoved()
- public void testNonRecurringExecution()
- public void testRecurringExecution()
- public static void staticPing()
- public static void staticTestMethod()
- public void runScheduledExecutor()
Hierarchy
Extends
- SapphireTest
Tasks
Line | Task |
---|---|
60 | test what is left in the directory. There should be two files. |
66 | Add a variety of invalid scheduled actions, and ensure exceptions are thrown for them |
73 | Add a variety of valid and invalid actions, run the executor and determine that the invalid |
74 | actions are removed. Not critical, invalids should not be added in the first place. |
84 | Add 3 non recurring actions, one in the past, one within the next 60 seconds, and one |
85 | beyond. Test that the first and second are executed, the third is not and its file remains. |
Methods
public
- clearTempFiles()
- getConfigFiles() — Get the config files for the specified identifier.
- runScheduledExecutor() — Run the schedule executor on the current contents of the config files in chronos/tests
- setUp()
- staticPing()
- staticTestMethod()
- tearDown()
- testAddItemsGrouped()
- testAddItemsUnGrouped()
- testAddValidation()
- testInvalidRemoved()
- testNonRecurringExecution()
- testRecurringExecution() — Set up a recurring action with frequency of 1 minute. The start time is 55 seconds ago, so the first execution is in a few seconds. Get the first execution output, then delete it. In another minute, check the output is back again.