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

Comparing jsr166/src/test/tck/ExecutorCompletionServiceTest.java (file contents):
Revision 1.19 by jsr166, Wed Dec 31 19:05:42 2014 UTC vs.
Revision 1.21 by jsr166, Sat Apr 25 04:55:30 2015 UTC

# Line 25 | Line 25 | import junit.framework.TestSuite;
25  
26   public class ExecutorCompletionServiceTest extends JSR166TestCase {
27      public static void main(String[] args) {
28 <        junit.textui.TestRunner.run(suite());
28 >        main(suite(), args);
29      }
30      public static Test suite() {
31          return new TestSuite(ExecutorCompletionServiceTest.class);
# Line 36 | Line 36 | public class ExecutorCompletionServiceTe
36       */
37      public void testConstructorNPE() {
38          try {
39 <            ExecutorCompletionService ecs = new ExecutorCompletionService(null);
39 >            new ExecutorCompletionService(null);
40              shouldThrow();
41          } catch (NullPointerException success) {}
42      }
# Line 47 | Line 47 | public class ExecutorCompletionServiceTe
47      public void testConstructorNPE2() {
48          try {
49              ExecutorService e = Executors.newCachedThreadPool();
50 <            ExecutorCompletionService ecs = new ExecutorCompletionService(e, null);
50 >            new ExecutorCompletionService(e, null);
51              shouldThrow();
52          } catch (NullPointerException success) {}
53      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines