If the execute() method just inserts a batchable run, should I expect after Test.stopTest() the batch is completed? From my last try, it doesn't seem to be the case. I might be wrong, but couldn't find any documentation. The example given in the Apex Developer's Guide was about action done directly in the Execute() call, not the type of "second-degree asynchronous" run I was trying. I have to say my need isn't that unique though - I could imagine a lot of batchable scenarios could become scheduled this way.
No comments:
Post a Comment