예제 #1
0
  @Test
  public void testVector() throws Exception {
    Vector<Integer> vector = new Vector<Integer>();
    vector.addElement(1);
    vector.addElement(2);
    vector.addElement(3);
    vector.addElement(4);

    CommandIterator.iterate(vector.elements(), createAssertCommand());
  }
예제 #2
0
  @Test
  public void testList() throws Exception {
    ArrayList<Integer> list = new ArrayList<Integer>();
    list.add(1);
    list.add(2);
    list.add(3);
    list.add(4);

    CommandIterator.iterate(list, createAssertCommand());
  }