Has anyone ever done a test class for continuation chaining (Multiple Asynchronous Callouts)?

  • You won't be able to test multiple async jobs, just the first one. By breaking up testing you should be able to have confidence in your testing, asserts need to go after Test.stopTest() – EricSSH Apr 6 '17 at 15:52
  • This sort of Testing a Database.Batchable implementation can test multiple batch logic and batch chaining as it runs synchronously to work around the lack of test support for multiple async calls. Obviously you need to use small batch sizes to stay within governor limits. – Keith C Apr 6 '17 at 20:28

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.