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