*/
package org.wamblee.concurrency;
-import junit.framework.Assert;
import junit.framework.TestCase;
/**
try {
Thread.sleep(sleepTime);
} catch (InterruptedException e) {
- ReadWriteLockTest.fail("ReadLocker thread was interrupted." +
+ throw new RuntimeException("ReadLocker thread was interrupted." +
Thread.currentThread());
}
try {
Thread.sleep(sleepTime);
} catch (InterruptedException e) {
- ReadWriteLockTest.fail("WriteLocker thread was interrupted: " +
+ throw new RuntimeException("WriteLocker thread was interrupted: " +
Thread.currentThread());
}