Exemplo n.º 1
0
 @Test(expected = NoSuchElementException.class)
 public void RemoveTester2() {
   assertNull(dir.remove("Me", "Phone"));
 }
Exemplo n.º 2
0
 @Test(expected = NoSuchElementException.class)
 public void RemoveTester3() {
   dir.put("Bob", "Phone", "2");
   assertNull(dir.remove("Me", "Phone"));
 }
Exemplo n.º 3
0
 @Test(expected = NoSuchElementException.class)
 public void RemoveTester() {
   dir.put("Horstmann", "Phone", "2");
   dir.remove("Horstmann", "Phone");
   assertNull(dir.get("Horstmann", "Phone"));
 }