@isTest
|
public with sharing class SubmitAndRefreshControllerTest {
|
static testMethod void test01(){
|
String rectHp = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('HP').getRecordTypeId();
|
String rectSct = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('Department_Class_GI').getRecordTypeId();
|
String rectAgency = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('Agency').getRecordTypeId();
|
String rectET = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('Department_Class_ET').getRecordTypeId();
|
// 病院
|
Account HP = new Account(RecordTypeId = rectHp, Name = 'HP');
|
HP.Is_Active__c = '有効';
|
insert HP;
|
|
Account_Delay_Apply__c ada = new Account_Delay_Apply__c();
|
ada.Is_upload_file__c = true;
|
ada.HospitalName__c = 'sssss';
|
ada.Attribute_Type__c = '卫生部';
|
ada.Hospital__c = HP.Id;
|
ada.ChangeReason__c = '备品送货地址维护';
|
insert ada;
|
SubmitAndRefreshController.init(ada.Id);
|
SubmitAndRefreshController.init('');
|
}
|
}
|