liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@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');
   }
}