# | Line 277 | Line 277 | public class LinkedBlockingQueueTest ext | |
---|---|---|
277 | /** | |
278 | * put(null) throws NPE | |
279 | */ | |
280 | < | public void testPutNull() throws InterruptedException { |
280 | > | public void testPutNull() throws InterruptedException { |
281 | try { | |
282 | LinkedBlockingQueue q = new LinkedBlockingQueue(SIZE); | |
283 | q.put(null); | |
284 | shouldThrow(); | |
285 | } catch (NullPointerException success) {} | |
286 | < | } |
286 | > | } |
287 | ||
288 | /** | |
289 | * all elements successfully put are contained |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |