李金换
2022-03-23 9f7e84a5c0d70154ddd89d70d2b15e37f7e3fd24
1
2
3
4
5
6
7
8
9
10
11
12
@isTest
private class NextMonthVisitTwoScheduleTest {
     static testMethod void testMethod1() {
        String CRON_EXP = '0 0 0 3 9 ? 2022';
 
        System.Test.startTest();
        // Schedule the test job
        system.schedule('NextMonthVisitTwoBatch', CRON_EXP, new NextMonthVisitTwoSchedule());
        // System.assertEquals('2022-09-03 00:00:00', String.valueOf(ct.NextFireTime));
        System.Test.StopTest();
    }
}