org.apache.turbine.services.schedule

## Class QuartzSchedulerServiceTest

- java.lang.Object
- - org.apache.turbine.test.BaseTestCase
  - - org.apache.turbine.services.schedule.QuartzSchedulerServiceTest

-     public class QuartzSchedulerServiceTest
      extends BaseTestCase

  Unit testing for the quartz implementation of the scheduler service.
  Author:
    Thomas Vandahl

- - ### Field Summary

    - ### Fields inherited from class org.apache.turbine.test.BaseTestCase

      `attributes, maxInactiveInterval`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `QuartzSchedulerServiceTest()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `setUp()`
    `void` | `tearDown()`
    `void` | `testAddRemoveJob()` Tests the ability to add and remove a job.
    `void` | `testEnableDisable()` Tests the ability to enable and disable the service.
    `void` | `testGetJob()` Tests the ability to retrieve the job added during initialization.
    `void` | `testRunningJob()` Test to make sure a job actually runs.

    - ### Methods inherited from class org.apache.turbine.test.BaseTestCase

      `baseInit, getMockRequest, getPipelineData, getRunData`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### QuartzSchedulerServiceTest

          public QuartzSchedulerServiceTest()

  - ### Method Detail

    - #### setUp

          public void setUp()
                     throws Exception

      Throws:
        `Exception`

    - #### tearDown

          public void tearDown()
                        throws Exception

      Throws:
        `Exception`

    - #### testEnableDisable

          public void testEnableDisable()

      Tests the ability to enable and disable the service.

    - #### testAddRemoveJob

          public void testAddRemoveJob()

      Tests the ability to add and remove a job. A list of jobs will be obtained from the service to determine if the operation were successful.

    - #### testGetJob

          public void testGetJob()

      Tests the ability to retrieve the job added during initialization.

    - #### testRunningJob

          public void testRunningJob()

      Test to make sure a job actually runs.

Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.