0

I am using this method to fetch data :
final PageReference link = new PageReference( 'https://login.salesforce.com/services/data/v37.0/tooling/query'); link.getParameters().put('q','select id from Account'); HttpRequest request = new HttpRequest(); request.setEndpoint(link.getUrl());

I have checked with many links regarding callouts , salesforce.stackexchange.com/questions/13395/httpcalloutmock-interface-where-there-is-more-than-1-callout and Writing a test class for multi-callout method using MockHttpResponseGenerator , but none have used this method. Can Anybody help me regarding this ?

  • 1
    Your questions is not clear. You would get better support if you edit your question, add the problem and what you have tried so far. – Raul Apr 3 '17 at 10:19
  • I have edited the question.Any help would be appreciated. – emy Apr 4 '17 at 6:19
  • Can you post your code and what have you tried so far? – Raul Apr 4 '17 at 7:26
  • @RahulSharma.... this is my code. And I want implement test class for this : final PageReference link = new PageReference( 'login.salesforce.com/services/data/v37.0/tooling/query'); link.getParameters().put('q','select id from Account'); HttpRequest request = new HttpRequest(); request.setEndpoint(link.getUrl()); – emy Apr 4 '17 at 8:01
  • where can we see your test class? – Raul Apr 4 '17 at 8:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.