[maven-release-plugin] copy for tag wamblee-utils-0.2.2
[utils] / support / general / src / test / java / org / wamblee / concurrency / ReadWriteLockTest.java
index d17b3d92fa66bc1bbfb9bce90437f54a4f48171c..273abd0ed3039f44234f736cc00a306dd31d0b6c 100644 (file)
@@ -15,7 +15,6 @@
  */ 
 package org.wamblee.concurrency;
 
-import junit.framework.Assert;
 import junit.framework.TestCase;
 
 /**
@@ -466,7 +465,7 @@ class ReadLocker implements Runnable {
         try {
             Thread.sleep(sleepTime);
         } catch (InterruptedException e) {
-            Assert.fail("ReadLocker thread was interrupted." +
+            throw new RuntimeException("ReadLocker thread was interrupted." +
                 Thread.currentThread());
         }
 
@@ -499,7 +498,7 @@ class WriteLocker implements Runnable {
         try {
             Thread.sleep(sleepTime);
         } catch (InterruptedException e) {
-            Assert.fail("WriteLocker thread was interrupted: " +
+            throw new RuntimeException("WriteLocker thread was interrupted: " +
                 Thread.currentThread());
         }