# | Line 155 | Line 155 | public class AbstractQueuedSynchronizerT | |
---|---|---|
155 | } | |
156 | ||
157 | /** | |
158 | + | * isQueued(null) throws NPE |
159 | + | */ |
160 | + | public void testIsQueuedNPE() { |
161 | + | final Mutex lock = new Mutex(); |
162 | + | try { |
163 | + | lock.isQueued(null); |
164 | + | shouldThrow(); |
165 | + | } catch (NullPointerException success) { |
166 | + | } |
167 | + | } |
168 | + | |
169 | + | /** |
170 | * isQueued reports whether a thread is queued. | |
171 | */ | |
172 | public void testIsQueued() { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |