|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.alfresco.repo.action.scheduled.ScheduledPersistedActionServiceTest
public class ScheduledPersistedActionServiceTest
Unit tests for the ScheduledPersistedActionService
Nested Class Summary | |
---|---|
protected static class |
ScheduledPersistedActionServiceTest.TestAction
|
static class |
ScheduledPersistedActionServiceTest.TestJob
For unit testing only - not thread safe! |
Constructor Summary | |
---|---|
ScheduledPersistedActionServiceTest()
|
Method Summary | |
---|---|
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 |
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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScheduledPersistedActionServiceTest()
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public void testPersistedActionImpl() throws java.lang.Exception
ScheduledPersistedAction
implementation behaves
properly
java.lang.Exception
public void testActionToTrigger() throws java.lang.Exception
java.lang.Exception
public void testAsTriggerLastRun() throws java.lang.Exception
java.lang.Exception
public void testCreation()
public void testCreateSaveLoad() throws java.lang.Exception
java.lang.Exception
public void testEditing() throws java.lang.Exception
java.lang.Exception
public void testLoadList() throws java.lang.Exception
java.lang.Exception
public void testLoadFromAction() throws java.lang.Exception
java.lang.Exception
public void testStartup() throws java.lang.Exception
java.lang.Exception
public void testDeletion() throws java.lang.Exception
java.lang.Exception
public void testJobBeanInjection() throws java.lang.Exception
java.lang.Exception
public void testExecution() throws java.lang.Exception
java.lang.Exception
public void testMultipleExecutions() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |