You need to sign in to do that
Don't have an account?
srilakshmib87
Need Help in writing Test Class
Hi,
I have a controller class where I have get methods like,
public String getTotal()
{
return vals[0];
}
I am unable to write a code in my test class to cover ths code.Can anyone please help in general way to cover get methods of controller class.
Thanks,
SRILAKSHMI B
In my opionion, you can achieve this by the sample code given below :
Class_name controller = new Class_name();
String str = controller.getTotal();
Hope this helps.