Closed GoogleCodeExporter closed 8 years ago
As of v1.9.0 the behavior seems to be correct. No interaction has been observed
after the call to writeLock(), as requested by the test. The behavior is the
one described in the Javadoc.
"Verifies that no more interactions happened in order. Different from
Mockito.verifyNoMoreInteractions(Object) because the order of verification
matters."
Original comment by Jose.Pau...@gmail.com
on 7 Mar 2012 at 7:25
Approved. Mockito behaves as expected. Thx José and Eric.
Original comment by brice.du...@gmail.com
on 7 Mar 2012 at 7:27
Original comment by brice.du...@gmail.com
on 8 Mar 2012 at 3:35
In this case, I would expect fail on line
order.verify(readWriteLock).writeLock() because readWriteLock.readLock() was
call before readWriteLock.writeLock().
Original comment by erzhu...@gmail.com
on 25 Mar 2012 at 6:57
Actually this is not intended in the verify "inOrder" semantic, it doesn't
imply that "writeLock" in the only nor the first interaction on the mock.
Original comment by brice.du...@gmail.com
on 25 Mar 2012 at 8:41
Original issue reported on code.google.com by
erzhu...@gmail.com
on 26 Feb 2012 at 9:35