@istest
|
public class OTCLogisticsBatchTest {
|
static testMethod void testMethod01(){
|
Statu_Achievements_DN__c sad = new Statu_Achievements_DN__c();
|
sad.Name = '006501621931';
|
sad.DeliveryDate_Raw__c = '1111';
|
sad.Sales_assistant_name_text__c = UserInfo.getUserId();
|
sad.RC_Manager__c = UserInfo.getUserId();
|
sad.EsignTestAccount__c =true;
|
sad.ReturnMark__c = false;
|
// sad.InstallDate__c=Date.today();
|
sad.Statu_Achievements__c = 'a0N1000001LBEHrEAP';
|
insert sad;
|
waybill__c w = new waybill__c();
|
w.waybill_number__c = '6501621931';
|
insert w;
|
Test.startTest();
|
Database.executeBatch(new OTCLogisticsBatch(),1);
|
Test.stopTest();
|
}
|
}
|