@isTest
|
public class LogisticsDisplayControllerTest {
|
static testMethod void test01(){
|
|
waybill__c w = new waybill__c();
|
w.waybill_number__c = '6501621931';
|
w.request_time__c= DateTime.now();
|
w.delay_reason__c= '2023-06-19T10:00:00.000+0000';
|
w.shipping_time__c= DateTime.now();
|
w.waybill_status__c= '2023-06-19T10:00:00.000+0000';
|
w.receive_time__c= DateTime.now();
|
insert w;
|
OTS_order__c ots = new OTS_order__c();
|
ots.waybill__c = w.id;
|
ots.name = 'ssssss';
|
ots.so_dn__c = '6501621931';
|
insert ots;
|
transinfo__c ti = new transinfo__c();
|
ti.waybill__c = w.id;
|
ti.op_way__c = '007';
|
ti.op_time__c = DateTime.now();
|
insert ti;
|
LogisticsDisplayController.getFrameNumManage('006501621931');
|
}
|
}
|