I am trying to test an application runs in it's own thread and the spends a lot of time sleeping. Part of what I need to test is what happens when the sleeping thread is interrupted. Is there a way to interrupt a sleeping thread (i.e. throw a java.lang.InterruptedException) from the IDEA debugger other than simply stopping execution of the application? I couldn't find anything about it in the online documentation, but I don't know if I am using suitable search terms...
Thanks in advance!