public void testWriteBlocksRead() throws InterruptedException {
for (Iterator it = logs.iterator(); it.hasNext();) {
ChangeLog changeLog = (ChangeLog) it.next();
WriteLock wLock = locking.acquireWriteLock(changeLog);
verifyBlocked(startReaderThread(locking, state.getId()));
wLock.release();
}
}
public void testWriteBlocksRead_notIfSameThread() throws InterruptedException {
for (Iterator it = logs.iterator(); it.hasNext();) {