2 risposte
Hey Saurav,
You can use the WebServiceMock interface to test callouts in your test class:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_callouts_wsdl2apex_testing.htm
Additionally, you can change your non-test method to return a fake XML string if it's running from a test class.
Hope this helps!
David