You need to sign in to do that
Don't have an account?
venkyyy
complete code coverage lines for the follwoing class
Hi all,
Can anybody give me the complete code coverage lines for the follwoing class(only one method i have copied bellow, means its not full class, i need to cover these lines only to fullfill my class code coverage):
public class getusers{
public PageReference modifyUsers() {
PageReference skillPage = Page.skill;
//Set the skill id if it is set from skill list
if(String.isNotBlank(skillId)) {
skillPage.getParameters().put('id', skillId);
skillPage.getParameters().put('act', 'eu');
}
skillPage.setRedirect(true);
return skillPage;
}
}
----------------
Can anybody give me the complete code coverage lines for the follwoing class(only one method i have copied bellow, means its not full class, i need to cover these lines only to fullfill my class code coverage):
public class getusers{
public PageReference modifyUsers() {
PageReference skillPage = Page.skill;
//Set the skill id if it is set from skill list
if(String.isNotBlank(skillId)) {
skillPage.getParameters().put('id', skillId);
skillPage.getParameters().put('act', 'eu');
}
skillPage.setRedirect(true);
return skillPage;
}
}
----------------
I recomended u to read this article https://developer.salesforce.com/page/An_Introduction_to_Apex_Code_Test_Methods
And try this code
As a common practice, if your question is answered, please choose 1 best answer.
But you can give every answer a thumb up if that answer is helpful to you.
Thanks,
Alex