StatementParameterList extends AbstractCollection<JdbcStatementParameter> implements StatementParameterCollection { @Override public ListIterator<JdbcStatementParameter> listIterator() { return getParameters().listIterator(); } StatementParameterList();  StatementParameterList(List<JdbcStatementParameter> parameters); @Override JdbcStatementParameter getParameterByName(String name); @Override boolean add(JdbcStatementParameter parameter); @Override Iterator<JdbcStatementParameter> iterator(); @Override int size(); @Override void add(int index, JdbcStatementParameter element); @Override boolean addAll(Collection<? extends JdbcStatementParameter> c); @Override boolean addAll(int index, Collection<? extends JdbcStatementParameter> c); @Override JdbcStatementParameter get(int index); @Override int indexOf(Object o); @Override int lastIndexOf(Object o); @Override ListIterator<JdbcStatementParameter> listIterator(); @Override ListIterator<JdbcStatementParameter> listIterator(int index); @Override JdbcStatementParameter remove(int index); @Override JdbcStatementParameter set(int index, JdbcStatementParameter element); @Override List<JdbcStatementParameter> subList(int fromIndex, int toIndex); @Override void clear(); List<JdbcStatementParameter> getParameters(); void setParameters(List<JdbcStatementParameter> parameters);  }
@Test public void testListIterator() { StatementParameterList list = addEntries(new StatementParameterList(), 4); assertNotNull(list.listIterator()); assertNotNull(list.listIterator(1)); }
@Test public void testListIterator_hasNextPrevious() { StatementParameterList list = addEntries(new StatementParameterList(), 5); int count = 0; for (ListIterator<JdbcStatementParameter> i = list.listIterator(); i.hasNext();) { switch (count) { case 0: { assertEquals(-1, i.previousIndex()); assertFalse(i.hasPrevious()); assertTrue(i.hasNext()); break; } case 5: { assertEquals(5, i.nextIndex()); assertTrue(i.hasPrevious()); assertFalse(i.hasNext()); break; } default: { assertEquals(count, i.nextIndex()); assertNotNull(i.previous()); assertNotNull(i.next()); assertTrue(i.hasPrevious()); assertTrue(i.hasNext()); } } i.next(); count++; } }