git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
now using the simplified user management interface.
[utils]
/
support
/
general
/
src
/
test
/
java
/
org
/
wamblee
/
concurrency
/
ReadWriteLockTest.java
diff --git
a/support/general/src/test/java/org/wamblee/concurrency/ReadWriteLockTest.java
b/support/general/src/test/java/org/wamblee/concurrency/ReadWriteLockTest.java
index d17b3d92fa66bc1bbfb9bce90437f54a4f48171c..273abd0ed3039f44234f736cc00a306dd31d0b6c 100644
(file)
--- a/
support/general/src/test/java/org/wamblee/concurrency/ReadWriteLockTest.java
+++ b/
support/general/src/test/java/org/wamblee/concurrency/ReadWriteLockTest.java
@@
-15,7
+15,6
@@
*/
package org.wamblee.concurrency;
*/
package org.wamblee.concurrency;
-import junit.framework.Assert;
import junit.framework.TestCase;
/**
import junit.framework.TestCase;
/**
@@
-466,7
+465,7
@@
class ReadLocker implements Runnable {
try {
Thread.sleep(sleepTime);
} catch (InterruptedException e) {
try {
Thread.sleep(sleepTime);
} catch (InterruptedException e) {
-
Assert.fail
("ReadLocker thread was interrupted." +
+
throw new RuntimeException
("ReadLocker thread was interrupted." +
Thread.currentThread());
}
Thread.currentThread());
}
@@
-499,7
+498,7
@@
class WriteLocker implements Runnable {
try {
Thread.sleep(sleepTime);
} catch (InterruptedException e) {
try {
Thread.sleep(sleepTime);
} catch (InterruptedException e) {
-
Assert.fail
("WriteLocker thread was interrupted: " +
+
throw new RuntimeException
("WriteLocker thread was interrupted: " +
Thread.currentThread());
}
Thread.currentThread());
}