You need to sign in to do that
Don't have an account?
sekhara
test cases for Building a Custom List Controller
Hi ,
Can any one help to write a test case for the following Apex Classes.
Apex Class:
public class Tva_ExportContactsExtension {
public Tva_ExportContactsExtension(ApexPages.StandardSetController controller)
{
controller.setPageSize(controller.getResultSize());
}
}
Try this :
Thanks
Ankit Arora
Blog | Facebook | Blog Page
All Answers
I tried Test case for it But i got Error
error is : Compile Error: Constructor not defined: [ApexPages.StandardSetController].<Constructor>(SOBJECT:Contact) at line 6 column 45
Try this :
Thanks
Ankit Arora
Blog | Facebook | Blog Page
@ Ankit_Arora :
Thank q I got the required result.
Hai Ankit,
Please help me,I am struggling with this Task. I need TestCoverage for IdeaStandardSetController.
For my constructor like:
public class MyIdeaProfileExtension12 {
private final ApexPages.IdeaStandardSetController ideaSetController;
public MyIdeaProfileExtension12(ApexPages.IdeaStandardSetController controller) {
ideaSetController = (ApexPages.IdeaStandardSetController)controller;
==========================
==========================
==========================
}
public List<Idea> getModifiedIdeas() {
Idea[] ideas = ideaSetController.getIdeaList();
return ideas;
}
For my DEV Ideas and related to ideas are Enabled.
Need Urget, For the above Red color constructor.I tried in Many ways.but coudnt find Result
How to call that Constructor Through Constructor..