You need to sign in to do that
Don't have an account?
Egor Palatov
Remove button test class
Can someone help me to write test class for this method?(shownow is a lise of my objects that current displayed on my VF page
public void removeDetail(){ Integer indexVal = Integer.valueof(system.currentpagereference().getparameters().get('index')); shownow.remove(indexVal - 1); }
And you page name is Page_Name
All Answers
And you page name is Page_Name
try using above code snippet.