+ Start a Discussion
Wim van BeekWim van Beek 

Testclass for Lightning connect

When writing a testclass for an external Object (using custom connector) it will not make the call, but simply return 0 results. Setting SeeAllData=true will start this process (according to the debug-log) but the process dies with a 2090095466-45801 (64356364) error.
There is not currently a way to write a testclass that generates an external object.  It is something that is on the road map and is "coming soon" (safe harbor).  With that being said, you should structure your code in such a way that you return fake data for Test.isRunningTest() and you seperate out your external object methods such that you do not dip below the require 75% coverage.