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

Comparing jsr166/src/test/tck/CancellableTaskTest.java (file contents):
Revision 1.1 by dl, Sun Aug 31 19:24:54 2003 UTC vs.
Revision 1.2 by dl, Fri Sep 12 15:40:25 2003 UTC

# Line 21 | Line 21 | public class CancellableTaskTest extends
21      private static long MEDIUM_DELAY_MS = 1000;
22      private static long LONG_DELAY_MS = 10000;
23  
24 +
25 +    public void testConstructor(){
26 +        try {
27 +            CancellableTask task = new CancellableTask(null);
28 +            fail("should throw");
29 +        }
30 +        catch(NullPointerException success) {
31 +        }
32 +    }
33      
34      public void testIsDone(){
35          CancellableTask task = new CancellableTask(new Runnable() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines