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

Comparing jsr166/src/test/tck/VectorTest.java (file contents):
Revision 1.2 by jsr166, Mon Nov 14 23:52:22 2016 UTC vs.
Revision 1.3 by jsr166, Tue Nov 29 22:31:56 2016 UTC

# Line 31 | Line 31 | public class VectorTest extends JSR166Te
31              }
32          }
33          return newTestSuite(
34 <                // VectorTest.class,
34 >                VectorTest.class,
35                  CollectionTest.testSuite(new Implementation()),
36                  CollectionTest.testSuite(new SubListImplementation()));
37      }
38  
39 +    /**
40 +     * tests for setSize()
41 +     */
42 +    public void testSetSize() {
43 +        Vector v = new Vector();
44 +        for (int n : new int[] { 100, 5, 50 }) {
45 +            v.setSize(n);
46 +            assertEquals(n, v.size());
47 +            assertNull(v.get(0));
48 +            assertNull(v.get(n - 1));
49 +        }
50 +    }
51 +
52   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines