瀏覽代碼

fixed remove test

Daniel Horowitz 6 年之前
父節點
當前提交
5b4b0b9a8d
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      src/test/java/com/zipcodewilmington/phonebook/PhoneBookTest.java

+ 3
- 2
src/test/java/com/zipcodewilmington/phonebook/PhoneBookTest.java 查看文件

@@ -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
     }