ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/AbstractQueuedSynchronizerTest.java
(Generate patch)

Comparing jsr166/src/test/tck/AbstractQueuedSynchronizerTest.java (file contents):
Revision 1.10 by dl, Wed Jan 7 20:49:53 2004 UTC vs.
Revision 1.11 by dl, Thu Jan 8 01:29:46 2004 UTC

# 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() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines