--- jsr166/src/test/tck/ExecutorCompletionServiceTest.java 2014/12/31 19:05:42 1.19 +++ jsr166/src/test/tck/ExecutorCompletionServiceTest.java 2015/04/25 04:55:30 1.21 @@ -25,7 +25,7 @@ import junit.framework.TestSuite; public class ExecutorCompletionServiceTest extends JSR166TestCase { public static void main(String[] args) { - junit.textui.TestRunner.run(suite()); + main(suite(), args); } public static Test suite() { return new TestSuite(ExecutorCompletionServiceTest.class); @@ -36,7 +36,7 @@ public class ExecutorCompletionServiceTe */ public void testConstructorNPE() { try { - ExecutorCompletionService ecs = new ExecutorCompletionService(null); + new ExecutorCompletionService(null); shouldThrow(); } catch (NullPointerException success) {} } @@ -47,7 +47,7 @@ public class ExecutorCompletionServiceTe public void testConstructorNPE2() { try { ExecutorService e = Executors.newCachedThreadPool(); - ExecutorCompletionService ecs = new ExecutorCompletionService(e, null); + new ExecutorCompletionService(e, null); shouldThrow(); } catch (NullPointerException success) {} }