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