Class SimpleJob

  • All Implemented Interfaces:
    Assembler, ScheduledJob

    public class SimpleJob
    extends Object
    implements ScheduledJob
    Simple job for use with unit testing of the scheduler service. This job merely increments a static counter variable when it is run. You can check the counter to verify the job has run.
    Version:
    $Id: SimpleJob.java 1854787 2019-03-04 18:30:25Z tv $
    Author:
    Quinton McCombs, Eric Pugh
    • Method Detail

      • getCounter

        public static int getCounter()
        Returns the counter value.
        Returns:
        The counter value
      • setCounter

        public static void setCounter​(int i)
        Sets the counter.
        Parameters:
        i - The new counter value