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

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

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

revision 1.32, Sat Jan 17 22:55:06 2015 UTC revision 1.33, Sun Feb 22 04:34:44 2015 UTC
# Line 51  Line 51 
51       */       */
52      public void testConstructor3() {      public void testConstructor3() {
53          try {          try {
54              ArrayDeque q = new ArrayDeque((Collection)null);              new ArrayDeque((Collection)null);
55              shouldThrow();              shouldThrow();
56          } catch (NullPointerException success) {}          } catch (NullPointerException success) {}
57      }      }
# Line 62  Line 62 
62      public void testConstructor4() {      public void testConstructor4() {
63          try {          try {
64              Integer[] ints = new Integer[SIZE];              Integer[] ints = new Integer[SIZE];
65              ArrayDeque q = new ArrayDeque(Arrays.asList(ints));              new ArrayDeque(Arrays.asList(ints));
66              shouldThrow();              shouldThrow();
67          } catch (NullPointerException success) {}          } catch (NullPointerException success) {}
68      }      }
# Line 75  Line 75 
75              Integer[] ints = new Integer[SIZE];              Integer[] ints = new Integer[SIZE];
76              for (int i = 0; i < SIZE-1; ++i)              for (int i = 0; i < SIZE-1; ++i)
77                  ints[i] = new Integer(i);                  ints[i] = new Integer(i);
78              ArrayDeque q = new ArrayDeque(Arrays.asList(ints));              new ArrayDeque(Arrays.asList(ints));
79              shouldThrow();              shouldThrow();
80          } catch (NullPointerException success) {}          } catch (NullPointerException success) {}
81      }      }

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

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8