@isTest private class RentalApplyDailyScheduleTest { static testMethod void testMethod1() { // This test runs a scheduled job at midnight Sept. 3rd. 2022 String CRON_EXP = '0 0 0 3 9 ? 2022'; System.Test.startTest(); // Schedule the test job String jobId = system.schedule('RentalApplyDailySchedule', CRON_EXP, new RentalApplyDailySchedule()); System.assertNotEquals(null, jobId); System.Test.stopTest(); } }