I'm wondering if anyone has some ideas about the following scenario:
One obvious and fair approach is not to rely on the automatic failure caused by an unhandled exception but by verifying (after some sleep time) the results afterwards (i.e. has the @Asynchronous method actually been executed completely).
I'm curious if there are other ways to be more direct in detecting the exception and failing the tests.
Thanks,
-jl
You can register an AsynchronousExceptionHandler to fail your tests on error. Cf. 22.2.4. Handling exceptions from asynchronous calls
And, in general, RTFM :)