You need to sign in to do that
Don't have an account?
kristhoper sayson
How to assert pagereference
Im working on testting my class and i want to assert this 2 method
how can i assert the pagereference. Here is my code:
Thanks
Mark
how can i assert the pagereference. Here is my code:
public PageReference backToSearchResult(){ PageReference pageRef = new PageReference('/apex/AsLi_AssetSearch'); return pageRef; } public PageReference updateViewCount() { ipAsset.AsLi_Asset_View_Count__c = ipAsset.AsLi_Asset_View_Count__c + 1; update ipAsset; return null; }
Thanks
Mark
See this..
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008wsVIAQ