Closed GoogleCodeExporter closed 9 years ago
I'm on it. Thanks for reporting!
Original comment by szcze...@gmail.com
on 7 Apr 2009 at 8:04
It's fixed in trunk.
Mocking throwables is potentially risky because cglib-created Throwable is not
well-created instance (e.g. it does not have stack trace, etc.). Therefore who
knows
what can happen if you throw it :) I fixed it in trunk anyway.
Original comment by szcze...@gmail.com
on 7 Apr 2009 at 8:44
That was really fast. For those who has a similar issue, I made the simplest
implementation possible and then used a spy around it to perform the mocking as
I
would have above.
Again thanks for the fast fix.
Original comment by nairb...@gmail.com
on 7 Apr 2009 at 11:51
This is true - spy() should work because the spied instance is essentially
correct -
it has the stack trace etc.
Original comment by szcze...@gmail.com
on 8 Apr 2009 at 8:59
Original comment by szcze...@gmail.com
on 9 Jun 2009 at 3:15
Original issue reported on code.google.com by
nairb...@gmail.com
on 7 Apr 2009 at 4:54