Skip to main content Tableau Conference is happening now. Tune in to activate your data superpowers with Tableau and Agentforce. Watch live on SF+ for exclusive digital content, new product demos, and key insights for data and analytics lovers.
I have a unit test that covers the undelete of contacts, but it is failing with the message: 'Methods defined as TestMethod do not support Web service callouts'

I believe this is because the installed Cloudingo package also has a trigger on the contact object named ContactUpdatePOSyncTrigger.  There is also a connected app for this package.  The failure doesn't occur until Test.stopTest() is called so it's difficult to narrow it down further.  Is there a way to disable a managed package while running unit tests?  I don't believe I can mock this service callout since it's in a mananged package, and really I have no insight into what the method signature is.

Thanks,

Steve MunLeeuw
2 answers
  1. Nov 29, 2017, 4:26 AM
    The failure occurs after stopTest because all asynchronous calls made after the startTest method are collected by the system. When stopTest is executed, all asynchronous processes are run synchronously. Check with Cloudingo  if they allow you to disable their triggers through a custom setting or some other mean. Or speak to Cloudingo and see if they have any advice for how to work with their triggers.  

    Please tag as best answer if it helps resolve the issue.

    Regards,
Loading
0/9000