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

Comparing jsr166/src/test/tck/AtomicIntegerArrayTest.java (file contents):
Revision 1.12 by jsr166, Mon Nov 16 04:57:10 2009 UTC vs.
Revision 1.13 by jsr166, Mon Nov 16 05:30:07 2009 UTC

# Line 57 | Line 57 | public class AtomicIntegerArrayTest exte
57      /**
58       * get and set for out of bound indices throw IndexOutOfBoundsException
59       */
60 <    public void testIndexing(){
60 >    public void testIndexing() {
61          AtomicIntegerArray ai = new AtomicIntegerArray(SIZE);
62          try {
63              ai.get(SIZE);
64 <        } catch (IndexOutOfBoundsException success){
64 >        } catch (IndexOutOfBoundsException success) {
65          }
66          try {
67              ai.get(-1);
68 <        } catch (IndexOutOfBoundsException success){
68 >        } catch (IndexOutOfBoundsException success) {
69          }
70          try {
71              ai.set(SIZE, 0);
72 <        } catch (IndexOutOfBoundsException success){
72 >        } catch (IndexOutOfBoundsException success) {
73          }
74          try {
75              ai.set(-1, 0);
76 <        } catch (IndexOutOfBoundsException success){
76 >        } catch (IndexOutOfBoundsException success) {
77          }
78      }
79  
# Line 334 | Line 334 | public class AtomicIntegerArrayTest exte
334              for (int i = 0; i < SIZE; ++i) {
335                  assertEquals(l.get(i), r.get(i));
336              }
337 <        } catch (Exception e){
337 >        } catch (Exception e) {
338              e.printStackTrace();
339              unexpectedException();
340          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines