You need to sign in to do that
Don't have an account?
How to cover the test coverage for getURL method
Hi , I have an if condition in my class which takes url using getUrl method, How to get in test coverage.
if(ApexPages.currentPage().getUrl()!=null){
}
Please somebody can guide me.
as far as I know if you set a page in the TestClass then its url wil be set which will not be null...
Please ignore previous post it doesn't work
Vasu,
You need to test the method where you are using ApexPages.currentPage().getURL().If you are able to test the method,then you are good to go.