Beispiel #1
0
 @Test
 public void testGet() {
   Verify.assertStartsWith(this.list, "1", "2", "3", "4", "5", "6");
   Verify.assertThrows(
       IndexOutOfBoundsException.class,
       new Runnable() {
         public void run() {
           SextupletonListTest.this.list.get(6);
         }
       });
 }
Beispiel #2
0
 @Test
 public void testAddingAllToOtherList() {
   List<String> newList = new ArrayList<String>(this.list);
   newList.add("7");
   Verify.assertStartsWith(newList, "1", "2", "3", "4", "5", "6", "7");
 }