107 |
|
} |
108 |
|
|
109 |
|
/** |
110 |
< |
* trylock on an unlocked lock succeeds |
110 |
> |
* tryLock on an unlocked lock succeeds |
111 |
|
*/ |
112 |
|
public void testTryLock() { |
113 |
|
ReentrantLock rl = new ReentrantLock(); |
209 |
|
|
210 |
|
|
211 |
|
/** |
212 |
< |
* timed trylock is interruptible. |
212 |
> |
* timed tryLock is interruptible. |
213 |
|
*/ |
214 |
|
public void testInterruptedException2() { |
215 |
|
final ReentrantLock lock = new ReentrantLock(); |
232 |
|
|
233 |
|
|
234 |
|
/** |
235 |
< |
* Trylock on a locked lock fails |
235 |
> |
* TryLock on a locked lock fails |
236 |
|
*/ |
237 |
|
public void testTryLockWhenLocked() { |
238 |
|
final ReentrantLock lock = new ReentrantLock(); |
252 |
|
} |
253 |
|
|
254 |
|
/** |
255 |
< |
* Timed trylock on a locked lock times out |
255 |
> |
* Timed tryLock on a locked lock times out |
256 |
|
*/ |
257 |
|
public void testTryLock_Timeout() { |
258 |
|
final ReentrantLock lock = new ReentrantLock(); |