You need to sign in to do that
Don't have an account?
tunedog
Redirect Extension Test Method
Can anyone give me some pointers on how to write a test method for this redirect extension?
Thanks in advance for any help!
public with sharing class aquavistaRedirect { PageReference rd= new PageReference('http://www.prmaustralia.com.au/MAB/Aquavista_Thankyou.html'); ApexPages.StandardController controller; public aquavistaRedirect(ApexPages.StandardController con){ controller = con; } public PageReference save() { controller.save(); return rd; } }
You haven't said which standard controller this is an extension to - I've assumed account but if that's not the case just replace the correct type in the constructor:
I haven't compile this, so there may be the odd typo, but hopefully you get the picture.