scala-ide/scala-ide — pull request #237 by dragos (2012-11-27 14:59:34+00:00)
Title: Fixed DebugTerminationTests

There were two issues in the termination tests:

* mocking `eventQueue.remove` instead of `eventQueue.remove(anyLong)`. This lead to the VMDisconnectedException test failing now and then (surprisingly, it passed most of the times)

* another test that mocked `eventQueue` never simulated a VM disconnection. This lead to the `ScalaJDIDispatchThread` to continue running indefinitely, calling `remove` on a mocked object. Mocks remember every interaction, meaning each method call will be stored in the mock, eventually leading to an OOM, and some *other* tests failing (for instance, with time outs).