957 |
|
assertFalse(c.await(timeoutMillis, MILLISECONDS)); |
958 |
|
assertTrue(millisElapsedSince(startTime) >= timeoutMillis); |
959 |
|
lock.writeLock().unlock(); |
960 |
< |
} catch (InterruptedException e) { |
961 |
< |
threadUnexpectedException(e); |
962 |
< |
} |
960 |
> |
} catch (InterruptedException fail) { threadUnexpectedException(fail); } |
961 |
|
} |
962 |
|
|
963 |
|
/** |
977 |
|
assertFalse(c.awaitUntil(new java.util.Date(d.getTime() + timeoutMillis))); |
978 |
|
assertTrue(millisElapsedSince(startTime) >= timeoutMillis); |
979 |
|
lock.writeLock().unlock(); |
980 |
< |
} catch (InterruptedException e) { |
983 |
< |
threadUnexpectedException(e); |
984 |
< |
} |
980 |
> |
} catch (InterruptedException fail) { threadUnexpectedException(fail); } |
981 |
|
} |
982 |
|
|
983 |
|
/** |