Li Jun
2022-03-31 3ba0123db48f8bab81ddf0913e1b95280ef545e8
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@isTest
private class SObjectHelperTest {
    static testMethod void testMethod1() {
        List<Account> accList = TestDataUtility.CreateAccounts(2);
 
        Test.startTest();
        SObjectHelper.MergeValue(accList[0],accList[1]);
        SObjectHelper.OverwriteValue(accList[0],accList[1]);
        Test.stopTest();
    }
    static testMethod void testMethod2() {
 
        Test.startTest();
        SObjectHelper.GetFieldMap('Account');
        SObjectHelper.GetFieldInfos('Account');
        Test.stopTest();
    }
    static testMethod void testMethod3() {
 
        Test.startTest();
        SObjectHelper.GetFieldSet('Account','Name');
        Test.stopTest();
    }
    static testMethod void testMethod4() {
 
        Test.startTest();
        SObjectHelper.GetPicklistLabelValueMap('Account','Name');
        SObjectHelper.GetPicklistValueLabelMap('Account','Name');
        Test.stopTest();
    }
    static testMethod void testMethod5() {
 
        Test.startTest();
        SObjectHelper.GetFieldDescription('Account','Name');
        Test.stopTest();
    }
    static testMethod void testMethod6() {
        List<Account> accList = TestDataUtility.CreateAccounts(2);
        Test.startTest();
        SObjectHelper.GetSObjectField(accList[0],'RecordTypeId');
        Test.stopTest();
    }
    static testMethod void testMethod7() {
        List<Account> accList = TestDataUtility.CreateAccounts(2);
        Test.startTest();
        SObjectHelper.GetMultiPickListOptions('a;b;c;d;e');
        Test.stopTest();
    }
}