You need to sign in to do that
Don't have an account?
Abhishek Kumar 149
how to write test class for below logic?
ApexPages.currentPage().getParameters().get('action'); // 0- > New, 1 -> Reply, 2 -> Reply All, 3 -> Forward
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
You can put the value for the parameter 'action' in Test clas like below: where variable is the value to be passed for the parameter action.
Let me know if that helps you.
Best Regards,
BALAJI