Kaynağa Gözat

fixed remove test

Daniel Horowitz 6 yıl önce
ebeveyn
işleme
5b4b0b9a8d

+ 3
- 2
src/test/java/com/zipcodewilmington/phonebook/PhoneBookTest.java Dosyayı Görüntüle

@@ -38,9 +38,10 @@ public class PhoneBookTest {
38 38
     public void removeTest1() {
39 39
         PhoneBook testBook = new PhoneBook();
40 40
         testBook.addEntry("Kate", "4846569090");
41
+        testBook.addEntry("Vince", "3333333333");
41 42
         testBook.removeEntry("Kate");
42
-        String testNumber = testBook.lookupNumber("Kate");
43
-        Assert.assertEquals(null, testNumber);
43
+        String testNumber = testBook.listNames();
44
+        Assert.assertEquals(testNumber, "Vince");
44 45
 
45 46
 
46 47
     }