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

Comparing jsr166/src/test/tck/AbstractExecutorServiceTest.java (file contents):
Revision 1.32 by jsr166, Sun May 29 07:01:17 2011 UTC vs.
Revision 1.33 by jsr166, Mon Jan 14 22:05:39 2013 UTC

# Line 213 | Line 213 | public class AbstractExecutorServiceTest
213                                     new ArrayBlockingQueue<Runnable>(10));
214  
215          Callable c = new Callable() {
216 <            public Object call() { return 5/0; }};
216 >            public Object call() { throw new ArithmeticException(); }};
217  
218          try {
219              p.submit(c).get();
# Line 257 | Line 257 | public class AbstractExecutorServiceTest
257       */
258      public void testInvokeAny3() throws Exception {
259          ExecutorService e = new DirectExecutorService();
260 <        List<Callable<Integer>> l = new ArrayList<Callable<Integer>>();
261 <        l.add(new Callable<Integer>() {
262 <                  public Integer call() { return 5/0; }});
260 >        List<Callable<Long>> l = new ArrayList<Callable<Long>>();
261 >        l.add(new Callable<Long>() {
262 >            public Long call() { throw new ArithmeticException(); }});
263          l.add(null);
264          try {
265              e.invokeAny(l);
# Line 435 | Line 435 | public class AbstractExecutorServiceTest
435       */
436      public void testTimedInvokeAny3() throws Exception {
437          ExecutorService e = new DirectExecutorService();
438 <        List<Callable<Integer>> l = new ArrayList<Callable<Integer>>();
439 <        l.add(new Callable<Integer>() {
440 <                  public Integer call() { return 5/0; }});
438 >        List<Callable<Long>> l = new ArrayList<Callable<Long>>();
439 >        l.add(new Callable<Long>() {
440 >            public Long call() { throw new ArithmeticException(); }});
441          l.add(null);
442          try {
443              e.invokeAny(l, MEDIUM_DELAY_MS, MILLISECONDS);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines