public class ScheduledPersistedActionServiceTest
extends junit.framework.TestCase
ScheduledPersistedActionService| Modifier and Type | Class and Description |
|---|---|
protected static class |
ScheduledPersistedActionServiceTest.TestAction |
static class |
ScheduledPersistedActionServiceTest.TestJob
For unit testing only - not thread safe!
|
| Constructor and Description |
|---|
ScheduledPersistedActionServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
testActionToTrigger()
Tests that the to-trigger stuff works properly
|
void |
testAsTriggerLastRun()
Tests that the triggers are suitably tweaked based on when the last run
occured
|
void |
testCreateSaveLoad() |
void |
testCreation()
Tests that we can create, save, edit, delete etc the scheduled persisted
actions
|
void |
testDeletion()
Ensures that deletion works correctly
|
void |
testEditing()
Ensures that we can create, save, edit, save load, edit, save, load etc,
all without problems, and without creating duplicates
|
void |
testExecution()
Tests that things actually get run correctly.
|
void |
testJobBeanInjection()
Tests that things get properly injected onto the job bean
|
void |
testLoadFromAction() |
void |
testLoadList()
Tests that the listings work, both of all scheduled, and from an action
|
void |
testMultipleExecutions()
Tests that when we have more than one schedule defined and active, then
the correct things run at the correct times, and we never get confused
|
void |
testPersistedActionImpl()
Test that the
ScheduledPersistedAction implementation behaves
properly |
void |
testStartup()
Tests that the startup registering works properly
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, failNotEquals, failNotSame, failSame, formatprotected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionprotected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionpublic void testPersistedActionImpl()
throws java.lang.Exception
ScheduledPersistedAction implementation behaves
properlyjava.lang.Exceptionpublic void testActionToTrigger()
throws java.lang.Exception
java.lang.Exceptionpublic void testAsTriggerLastRun()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreation()
public void testCreateSaveLoad()
throws java.lang.Exception
java.lang.Exceptionpublic void testEditing()
throws java.lang.Exception
java.lang.Exceptionpublic void testLoadList()
throws java.lang.Exception
java.lang.Exceptionpublic void testLoadFromAction()
throws java.lang.Exception
java.lang.Exceptionpublic void testStartup()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeletion()
throws java.lang.Exception
java.lang.Exceptionpublic void testJobBeanInjection()
throws java.lang.Exception
java.lang.Exceptionpublic void testExecution()
throws java.lang.Exception
java.lang.Exceptionpublic void testMultipleExecutions()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.