[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.32, Sun May 29 07:01:17 2011 UTC revision 1.33, Mon Jan 14 22:05:39 2013 UTC
# Line 213  Line 213 
213                                     new ArrayBlockingQueue<Runnable>(10));                                     new ArrayBlockingQueue<Runnable>(10));
214    
215          Callable c = new Callable() {          Callable c = new Callable() {
216              public Object call() { return 5/0; }};              public Object call() { throw new ArithmeticException(); }};
217    
218          try {          try {
219              p.submit(c).get();              p.submit(c).get();
# Line 257  Line 257 
257       */       */
258      public void testInvokeAny3() throws Exception {      public void testInvokeAny3() throws Exception {
259          ExecutorService e = new DirectExecutorService();          ExecutorService e = new DirectExecutorService();
260          List<Callable<Integer>> l = new ArrayList<Callable<Integer>>();          List<Callable<Long>> l = new ArrayList<Callable<Long>>();
261          l.add(new Callable<Integer>() {          l.add(new Callable<Long>() {
262                    public Integer call() { return 5/0; }});              public Long call() { throw new ArithmeticException(); }});
263          l.add(null);          l.add(null);
264          try {          try {
265              e.invokeAny(l);              e.invokeAny(l);
# Line 435  Line 435 
435       */       */
436      public void testTimedInvokeAny3() throws Exception {      public void testTimedInvokeAny3() throws Exception {
437          ExecutorService e = new DirectExecutorService();          ExecutorService e = new DirectExecutorService();
438          List<Callable<Integer>> l = new ArrayList<Callable<Integer>>();          List<Callable<Long>> l = new ArrayList<Callable<Long>>();
439          l.add(new Callable<Integer>() {          l.add(new Callable<Long>() {
440                    public Integer call() { return 5/0; }});              public Long call() { throw new ArithmeticException(); }});
441          l.add(null);          l.add(null);
442          try {          try {
443              e.invokeAny(l, MEDIUM_DELAY_MS, MILLISECONDS);              e.invokeAny(l, MEDIUM_DELAY_MS, MILLISECONDS);

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8