Class MisfirePolicyTest


  • public class MisfirePolicyTest
    extends OBBaseTest
    Test cases to cover the expected behavior of the misfire policy applied to the background processes.
    • Constructor Detail

      • MisfirePolicyTest

        public MisfirePolicyTest​(String configOption)
        Constructor that will set the necessary config for clustered or non-clustered execution
        Parameters:
        configOption - clustered or non-clustered
    • Method Detail

      • configOptions

        public static List<String> configOptions()
      • startScheduler

        public void startScheduler()
                            throws org.quartz.SchedulerException
        Throws:
        org.quartz.SchedulerException
      • stopScheduler

        public void stopScheduler()
                           throws org.quartz.SchedulerException
        Throws:
        org.quartz.SchedulerException
      • checkMisfirePolicy

        public void checkMisfirePolicy()
                                throws org.quartz.SchedulerException,
                                       InterruptedException
        Check that the misfire policy is fulfilled: don't execute on misfire and wait for next regular execution time.
        Throws:
        org.quartz.SchedulerException
        InterruptedException
      • checkMisfirePolicyWithSecondlySchedule

        public void checkMisfirePolicyWithSecondlySchedule()
                                                    throws InterruptedException,
                                                           org.quartz.SchedulerException
        Throws:
        InterruptedException
        org.quartz.SchedulerException
      • everyNDaysNotExecutedOnMisfire

        public void everyNDaysNotExecutedOnMisfire()
                                            throws org.quartz.SchedulerException,
                                                   InterruptedException
        Check that jobs are not executed on misfire in the "every n days" daily execution. We are explicitly testing this kind of schedule because of its particular implementation.
        Throws:
        org.quartz.SchedulerException
        InterruptedException