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

Comparing jsr166/src/test/tck/EntryTest.java (file contents):
Revision 1.2 by jsr166, Mon Nov 2 20:28:31 2009 UTC vs.
Revision 1.5 by jsr166, Wed Aug 25 00:07:03 2010 UTC

# Line 11 | Line 11 | import java.io.*;
11  
12   public class EntryTest extends JSR166TestCase {
13      public static void main(String[] args) {
14 <        junit.textui.TestRunner.run (suite());
14 >        junit.textui.TestRunner.run(suite());
15      }
16      public static Test suite() {
17 <        return new TestSuite(EntryTest.class);
17 >        return new TestSuite(EntryTest.class);
18      }
19  
20      static final String k1 = "1";
# Line 126 | Line 126 | public class EntryTest extends JSR166Tes
126          assertEquals(v1, s.getValue());
127          try {
128              s.setValue(k2);
129 <            fail();
129 >            shouldThrow();
130          } catch (UnsupportedOperationException success) {}
131      }
132   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines