Skip to main content
2 of 2
added 28 characters in body
Sergej Utko
  • 22.1k
  • 11
  • 60
  • 88

Saw this on another post, have not tested it.

if (!System.Test.isRunningTest()) {
    WebServiceCallout.invoke(...)
} 
else {
  // Simulate callout here...
}