|
||||||||
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.opencms.scheduler.TestCmsScheduler
public class TestCmsScheduler
Test cases for the OpenCms scheduler thread pool.
Field Summary | |
---|---|
static int |
SECONDS_TO_WAIT
Number of seconds to wait. |
static int |
THREADS_TO_RUN
Number of threads to run. |
Constructor Summary | |
---|---|
TestCmsScheduler(String arg0)
Default JUnit constructor. |
Method Summary | |
---|---|
void |
testActivateAndDeactivateJob()
Tests activating and deactivating of scheduled jobs. |
void |
testAddAndRemoveJobFromScheduler()
Tests adding and removing a job to the OpenCms schedule manager. |
void |
testAddExistingJobAgainToScheduler()
Tests adding an existing job again to the OpenCms scheduler. |
void |
testBasicJobExecution()
Tests execution of jobs using CmsSchedulerThreadPool. |
void |
testCmsJobLaunch()
Tests launching of an OpenCms job. |
void |
testJobInOpenCmsScheduler()
Tests launching of an OpenCms job with the OpenCms schedule manager. |
void |
testPersitentJobInOpenCmsScheduler()
Tests launching of a persistent OpenCms job with the OpenCms schedule manager. |
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 |
---|
public static final int SECONDS_TO_WAIT
public static final int THREADS_TO_RUN
Constructor Detail |
---|
public TestCmsScheduler(String arg0)
arg0
- JUnit parametersMethod Detail |
---|
public void testActivateAndDeactivateJob() throws Exception
Exception
- if something goes wrongpublic void testAddAndRemoveJobFromScheduler() throws Exception
Exception
- if something goes wrongpublic void testAddExistingJobAgainToScheduler() throws Exception
Exception
- if something goes wrongpublic void testBasicJobExecution() throws Exception
Exception
- if something goes wrongpublic void testCmsJobLaunch() throws Exception
Exception
- if something goes wrongpublic void testJobInOpenCmsScheduler() throws Exception
Exception
- if something goes wrongpublic void testPersitentJobInOpenCmsScheduler() throws Exception
Exception
- if something goes wrong
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |