38 |
|
} |
39 |
|
|
40 |
|
/** |
41 |
< |
* countDown has no effect when count is zero |
41 |
> |
* countDown decrements count when positive and has no effect when zero |
42 |
|
*/ |
43 |
< |
public void testcountDown() { |
43 |
> |
public void testCountDown() { |
44 |
|
final CountDownLatch l = new CountDownLatch(1); |
45 |
|
assertEquals(1, l.getCount()); |
46 |
|
l.countDown(); |
112 |
|
} |
113 |
|
|
114 |
|
/** |
115 |
< |
* await throws IE ig interrupted before counted down |
115 |
> |
* await throws IE if interrupted before counted down |
116 |
|
*/ |
117 |
|
public void testAwait_InterruptedException() { |
118 |
|
final CountDownLatch l = new CountDownLatch(1); |
136 |
|
} |
137 |
|
|
138 |
|
/** |
139 |
< |
* timed await throws IE ig interrupted before counted down |
139 |
> |
* timed await throws IE if interrupted before counted down |
140 |
|
*/ |
141 |
|
public void testTimedAwait_InterruptedException() { |
142 |
|
final CountDownLatch l = new CountDownLatch(1); |