
#########
Scheduler
#########


****
NAME
****


Kernel::System::UnitTest::Scheduler - Scheduler unit test lib


********
SYNOPSIS
********


All Scheduler functions


****************
PUBLIC INTERFACE
****************


new()
=====


create an object


.. code-block:: perl

     use Kernel::System::ObjectManager;
     local $Kernel::OM = Kernel::System::ObjectManager->new();
     my $UnitTestSchedulerObject = $Kernel::OM->Get('Kernel::System::UnitTest::Scheduler');



CleanUp()
=========


Removes all entries in the SchedulerDB.


.. code-block:: perl

     my $Success = $UnitTestSchedulerObject->CleanUp(
         Type => 'AsynchronousExecutor', # optional
     );



Execute()
=========


Executes all entries in the SchedulerDB.


.. code-block:: perl

     my $Success = $UnitTestSchedulerObject->Execute(
         Type => 'AsynchronousExecutor', # optional
     );



CheckCount()
============


Checks the count of the entries in the SchedulerDB.


.. code-block:: perl

     my $Success = $UnitTestSchedulerObject->CheckCount(
         UnitTestObject => $Self,
         Count          => '2',
         Message        => "2 'AsynchronousExecutor' tasks added",    # optional
         Type           => 'AsynchronousExecutor',                    # optional
     );




