You need to sign in to do that
Don't have an account?
Test Class content for apex mesdage
Hi,
Can anyone please suggest me how to write a test class for the apex message content.
This is my code:
pagereference p = apexpages.Currentpage();
apexpages.Message msg = new Apexpages.Message(ApexPages.Severity.Info,'Please select Report type, Year & Month');
apexpages.addmessage(msg);
return p;
Indhu
Please post an abbreviated version of the code that you are trying to accomplish (controller class, other class). Forum responders work best with just the relevant elements, not hundreds of lines of code to wade though)