@Test public void testAdd() { list.add(0, object1); list.add(0, object2); assertEquals(list.size(), 2); System.out.println(list.get(0)); System.out.println(list.get(1)); System.out.println(object1); System.out.println(object2); assertEquals(object1, list.get(1)); assertEquals(object2, list.get(0)); }
@Test public void testRemoveHead() { list.add(0, object1); list.add(1, object2); list.add(2, object3); list.remove(0); assertEquals(list.get(0), object2); assertEquals(list.size(), 2); }