public void testViewPartCardinality() { try { test.viewPart(1, 8); fail("no exception"); } catch (IndexException e) { } }
public void testViewPartUnder() { try { test.viewPart(-1, values.length); fail("no exception"); } catch (IndexException e) { } }
public void testViewPartOver() { try { test.viewPart(2, 7); fail("no exception"); } catch (IndexException e) { } }
public void testViewPart() throws Exception { Vector part = test.viewPart(1, 2); assertEquals("part size", 2, part.getNumNondefaultElements()); for (int i = 0; i < part.size(); i++) { assertEquals("part[" + i + ']', test.get(i + 1), part.get(i)); } }