228 |
|
case awaitUntil: |
229 |
|
assertTrue(c.awaitUntil(delayedDate(timeoutMillis))); |
230 |
|
break; |
231 |
+ |
default: |
232 |
+ |
throw new AssertionError(); |
233 |
|
} |
234 |
|
} |
235 |
|
|
1200 |
|
public void testTryAcquireSharedNanos_Timeout() { |
1201 |
|
final BooleanLatch l = new BooleanLatch(); |
1202 |
|
final BooleanLatch observedQueued = new BooleanLatch(); |
1201 |
– |
final long timeoutMillis = timeoutMillis(); |
1203 |
|
Thread t = newStartedThread(new CheckedRunnable() { |
1204 |
|
public void realRun() throws InterruptedException { |
1205 |
|
assertFalse(l.isSignalled()); |