@isTest private class TestMockTrigger { static testMethod void TestMockTriggerProcess(){ TrackConsumableSalesForecast__c testTrack = new TrackConsumableSalesForecast__c(); testTrack.Type__c = 'ENG'; testTrack.SnapshotMonth__c =Date.valueOf('2023-01-01'); testTrack.HospitalName__c='tets'; testTrack.BillLostWarning__c = 2; testTrack.HospitalAndCategory2__c='sada'; testTrack.LastShipmentDate__c = Date.valueOf('2023-01-01'); insert testTrack; TrackConsumableSalesForecast__c testTrack2 = new TrackConsumableSalesForecast__c(); testTrack2.Type__c = 'ET'; testTrack2.SnapshotMonth__c =Date.valueOf('2023-07-01'); testTrack2.HospitalName__c='tetds'; testTrack2.BillLostWarning__c = 2; testTrack2.LastShipmentDate__c = Date.valueOf('2023-07-01'); insert testTrack2; // Resource_Writeoff_Evidence__c test5 = new Resource_Writeoff_Evidence__c(); // insert test5; // PO__c test8 = new PO__c(); // test8.PO_Num__c = '12412'; // insert test8; // Resource_Standard__c rs = new Resource_Standard__c(); // insert rs; // Resource_Standard_Detail__c rsd = new Resource_Standard_Detail__c(); // rsd.Resource__c = rs.Id; // insert rsd; // Resource_Release_Record__c test7 = new Resource_Release_Record__c(); // insert test7; // Resource_Release_Record_Detail__c test6 = new Resource_Release_Record_Detail__c(); // test6.Resource_Release_Record__c = test7.Id; // test6.Resource_Detail__c = rsd.Id; // insert test6; } }