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
26
27
28
29
@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);
    }
}