@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);
|
}
|
}
|