ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ReentrantLockTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ReentrantLockTest.java (file contents):
Revision 1.7 by dl, Thu Sep 25 11:02:41 2003 UTC vs.
Revision 1.8 by dl, Fri Sep 26 15:33:13 2003 UTC

# Line 69 | Line 69 | public class ReentrantLockTest extends J
69  
70      }
71  
72 <    /*
72 >    /**
73       * locking an unlocked lock succeeds
74       */
75      public void testLock() {
# Line 79 | Line 79 | public class ReentrantLockTest extends J
79          rl.unlock();
80      }
81  
82 <    /*
82 >    /**
83       * locking an unlocked fair lock succeeds
84       */
85      public void testFairLock() {
# Line 89 | Line 89 | public class ReentrantLockTest extends J
89          rl.unlock();
90      }
91  
92 <    /*
92 >    /**
93       * Unlocking an unlocked lock throws IllegalMonitorStateException
94       */
95      public void testUnlock_IllegalMonitorStateException() {
# Line 101 | Line 101 | public class ReentrantLockTest extends J
101          } catch(IllegalMonitorStateException success){}
102      }
103  
104 <    /*
104 >    /**
105       * trylock on an unlocked lock succeeds
106       */
107      public void testTryLock() {
# Line 112 | Line 112 | public class ReentrantLockTest extends J
112      }
113  
114  
115 <    /*
115 >    /**
116       * getQueueLength reports number of waiting threads
117       */
118      public void testGetQueueLength() {
# Line 141 | Line 141 | public class ReentrantLockTest extends J
141          }
142      }
143  
144 <    /*
144 >    /**
145       * getQueuedThreads includes waiting threads
146       */
147      public void testGetQueuedThreads() {
# Line 174 | Line 174 | public class ReentrantLockTest extends J
174      }
175  
176  
177 <    /*
177 >    /**
178       * timed trylock is interruptible.
179       */
180      public void testInterruptedException2() {
# Line 290 | Line 290 | public class ReentrantLockTest extends J
290      }
291  
292  
293 <    /*
293 >    /**
294       * lockInterruptibly is interruptible.
295       */
296      public void testLockInterruptibly1() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines