Join Slack
Powered by
does anyone know how to capture a junit assertione...
# announcements
t
tipsy
11/21/2019, 7:45 PM
does anyone know how to capture a junit assertionerror that happens in a different thread? 🤔
f
frogger
11/21/2019, 8:31 PM
java-wise your best option is either dynamic code generation or adding a default exception handler to the thread.
frogger
11/21/2019, 8:32 PM
Thread#setUncaughtExceptionHandler(h);
t
tipsy
11/21/2019, 11:57 PM
i can't add a handler to the thread, as i don't have access to it
tipsy
11/21/2019, 11:57 PM
how would dynamic code generation work for this?
2
Views
Open in Slack
Previous
Next