You need to sign in to do that
Don't have an account?
Mubarak Hussain 1
How to add list of custom setting in Testclass
Hi all,
How to add list of custom settings in testclass??
for ex.i am having custom setting as custom_settting_1 .
i created a list by
list<Custom_setting_1> sc= new list<custom_setting_1>();
Is there any way to include the list of custom setting.?
Without list am getting 100%code coverage.but with list my code coverage got decreased.
How to add list of custom settings in testclass??
for ex.i am having custom setting as custom_settting_1 .
i created a list by
list<Custom_setting_1> sc= new list<custom_setting_1>();
Is there any way to include the list of custom setting.?
Without list am getting 100%code coverage.but with list my code coverage got decreased.
so a insert new custom_setting_1(<the properties you need>) should work.
for exmpl
custom_setting__C obj= new custom_setting__C ();
obj.fieldName ='value';
insert obj.
Please let us know if this will help u
Thanks
Amit Chaudhary