@isTest
|
private class LexNewSICustomNewControllerTest {
|
static testMethod void testMethod1() {
|
Opportunity opp1 = new Opportunity(
|
Name='testOpp1',
|
StageName='引合',
|
CloseDate=Date.today(),
|
Competitor__c ='A',
|
Click_Close_Date__c = null
|
);
|
insert opp1;
|
IS_Opportunity_Demand__c ISOhead = new IS_Opportunity_Demand__c();
|
ISOhead.name='*';
|
ISOhead.Opportunity_ID__c = opp1.id;
|
ISOhead.Public_Hospital_TF__c = true;
|
ISOhead.Preparation_Stage_TF__c = true;
|
ISOhead.Data_Check_TF__c = true;
|
ISOhead.Operating_Room_Plane_Graph_TF__c = true;
|
ISOhead.Demonstration_Area_Plane_Graph_TF__c = true;
|
insert ISOhead;
|
LexNewSICustomNewController c=new LexNewSICustomNewController();
|
LexNewSICustomNewController.init(opp1.Id);
|
LexNewSICustomNewController.getISOPList(ISOhead.Id);
|
LexNewSICustomNewController.getProfileName(UserInfo.getProfileId());
|
LexNewSICustomNewController.init(null);
|
LexNewSICustomNewController.getISOPList(null);
|
LexNewSICustomNewController.getProfileName(null);
|
}
|
}
|