@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;
|
|
}
|
}
|