Exemple #1
0
 @Test(timeout = 500)
 public void testList3() {
   assertTrue("Newly constructed list should be empty", impl.isEmpty());
   assertEquals("Newly constructed list should have size 0", 0, impl.size());
   assertEquals("Appending the list should return itself.", impl, impl.append(5));
   assertEquals("Size should now be 1.", 1, impl.size());
 }
Exemple #2
0
 @Test(timeout = 500)
 public void testList1() {
   assertTrue("Newly constructed list should be empty", impl.isEmpty());
   assertEquals("Newly constructed list should have size 0", 0, impl.size());
 }
Exemple #3
0
 @Test(timeout = 500)
 public void testList0() {
   assertTrue("Newly constructed list should be empty", impl.isEmpty());
 }