You need to sign in to do that
Don't have an account?
Wim van Beek
External object, Callback does not work correct in Testclass
Working with external objects I am facing issues in a testclass.
1. Inserting a (list of) record requires to use of a call like this.
List<Database.SaveResult> results = Database.insertAsync(theNewRecords, new CallbackClass());
In this CallBackClass a "override public void processSave(Database.SaveResult saveResult)" will provide assistance to process the newly formed id of this insert.
Works fine in real-live. How can I test-run this processSave method? The test.stoptest() does not do the trick.
1. Inserting a (list of) record requires to use of a call like this.
List<Database.SaveResult> results = Database.insertAsync(theNewRecords, new CallbackClass());
In this CallBackClass a "override public void processSave(Database.SaveResult saveResult)" will provide assistance to process the newly formed id of this insert.
Works fine in real-live. How can I test-run this processSave method? The test.stoptest() does not do the trick.
Using the code format button (< >), can you please post your test code (and the error you're receiving) so we can help investigate?