binxie
2024-01-16 1b08402678deb31bba4a347bfd388eba8360cbc1
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
@isTest
private class LexSIAbortBtnControllerTest {
    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;
        LexSIAbortBtnController.init(ISOhead.id);
        LexSIAbortBtnController.setAbortSI(ISOhead.Id,'dd');
        LexSIAbortBtnController c = new LexSIAbortBtnController();
    }
}