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
26
27
@isTest
private class RepeatProMergeBtachTest {
 
    @IsTest
    static void TestMethod01() {
 
        Tender_information__c TenInfo = new Tender_information__c();
        Tender_information__c TenInfo1 = new Tender_information__c();
        TenInfo1.Name = 'QLMTEST08111057-02';
        insert TenInfo1;
 
        TenInfo.Name = '2345';
        TenInfo.InfoId__c = '1234';
        TenInfo.Retain_Tender__c = TenInfo1.Id;
        TenInfo.RepeatProMergeFLG__c = true;
        insert TenInfo;
 
        List<String> str = new List<String>();
        str.add(TenInfo.Id);
 
        Test.StartTest();
        Database.executeBatch( new RepeatProMergeBtach(),100);
        Database.executeBatch( new RepeatProMergeBtach(str),100);
        Test.stopTest();
    }
 
}