@isTest
|
private class FixtureRemindSnapshotBatchTest {
|
static testMethod void testMethod1() {
|
OlympusCalendar__c oc = new OlympusCalendar__c(Date__c=System.today(), Before_1_WorkDay__c=System.today().addDays(-1));
|
insert oc;
|
List<FixtureRemindSnapshot__c> frsList = [SELECT Id FROM FixtureRemindSnapshot__c];
|
System.assertEquals(0, frsList.size());
|
Test.startTest();
|
FixtureRemindSnapshotBatch b = new FixtureRemindSnapshotBatch();
|
b.errorList.add('Test');
|
Database.executeBatch(b);
|
Test.stopTest();
|
frsList = [SELECT Id FROM FixtureRemindSnapshot__c];
|
// 2021117 ljh WLIG-C4VDUX update start
|
// System.assertEquals(3, frsList.size());
|
System.assertEquals(35, frsList.size());
|
// 2021117 ljh WLIG-C4VDUX update end
|
}
|
}
|