I am trying to debug a failing test that has an assertEquals JUnit test. I’d like to see the behavior of the application for a certain amount of time after the assertEquals statement fails. Right now, eClipse stops the test as soon as the statement fails. Is there a way to make the test sleep for a bit after a failure? Thanks.
I am trying to debug a failing test that has an assertEquals JUnit test.
Share
When you say “the behavior of the application for a certain amount of time”, you’re talking about behavior in a different (non-test) thread, right? I’d extract the assertion conditions into a variable, put a breakpoint on the actual assert line, and run the test in the debugger:
becomes