高章伟
2022-02-18 8b5f4c6c281cfa548f92de52c8021e37aa81901e
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
30
31
@isTest
private class updateTenDeleteBackHandlerTest {
    static testMethod void testMethod1() {
        Tender_information__c Ten1 = new Tender_information__c();
        Ten1.Name = 'TESTBatch空更新';
        Ten1.ProjectId__c = '38_99df2844cf784982acdc61d00d7a7dbb3';
        Ten1.Logical_delete__c = true;
        insert Ten1;
 
        Tender_information__c Ten = new Tender_information__c();
        Ten.Name = '123456';
        Ten.ProjectId__c = '38_99df2844cf784982acdc61d00d7a7dbb2';
        Ten.Logical_delete__c = true;
        Ten.Retain_Tender__c = Ten1.Id;
        insert Ten;
 
        Tender_information__c Ten2 = new Tender_information__c();
        Ten2.Name = '1234567';
        Ten2.ProjectId__c = '38_99df2844cf784982acdc61d00d7a7dbb1';
        Ten2.Logical_delete__c = true;
        Ten2.Retain_Tender__c = Ten1.Id;
        insert Ten2;
 
        Ten.Logical_delete__c = false;
        update Ten;
 
        Ten.Retain_Tender__c = null;
        update Ten2;
 
    }
}