You need to sign in to do that
Don't have an account?
How to write test class for my search apex controller method
Folks,
I am writing a test class for my search function. In VF page it has three criteria i.e. Name, Start date and End Date to summarize the results and I am using command button method “rerender” to render the results in a data table.
In my Apex controller, the selected criteria’s will be checked for ‘null’ or ‘not null’ before querying the result. I need to pass values for these criteria satisfying both ‘null’ and ‘not null’ for testing.
How to write a test method to pass values for these criteria’s?.
Seemati