[cvs] / jsr166 / src / test / tck / AbstractExecutorServiceTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/AbstractExecutorServiceTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.35, Wed Dec 31 19:05:42 2014 UTC revision 1.36, Sat Feb 28 18:12:58 2015 UTC
# Line 167  Line 167 
167       * execute(null runnable) throws NPE       * execute(null runnable) throws NPE
168       */       */
169      public void testExecuteNullRunnable() {      public void testExecuteNullRunnable() {
         try {  
170              ExecutorService e = new DirectExecutorService();              ExecutorService e = new DirectExecutorService();
171            try {
172              e.submit((Runnable) null);              e.submit((Runnable) null);
173              shouldThrow();              shouldThrow();
174          } catch (NullPointerException success) {}          } catch (NullPointerException success) {}
# Line 178  Line 178 
178       * submit(null callable) throws NPE       * submit(null callable) throws NPE
179       */       */
180      public void testSubmitNullCallable() {      public void testSubmitNullCallable() {
         try {  
181              ExecutorService e = new DirectExecutorService();              ExecutorService e = new DirectExecutorService();
182            try {
183              e.submit((Callable) null);              e.submit((Callable) null);
184              shouldThrow();              shouldThrow();
185          } catch (NullPointerException success) {}          } catch (NullPointerException success) {}

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8