liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@Istest
public class LexTransferApplyControllerTest {
    static testMethod void testMethod01(){
           //调拨申请
           TransferApply__c raObj = new TransferApply__c();
           raObj.Name = 'testra';
           raObj.From_Location__c = '北京';
           raObj.Destination_Location__c = '北京 备品中心';
           Map<String,Schema.RecordTypeInfo>  DEVELOPERNAMEMAP  = Schema.SObjectType.TransferApply__c.getRecordTypeInfosByDeveloperName();
           raObj.RecordTypeId = DEVELOPERNAMEMAP.get('AgencyToCenter').getRecordTypeId();            
           insert raObj;
           LexTransferApplyController.transferApplySelectDetail(raObj.id);
    }
}