Browse Source

fixed remove test

Daniel Horowitz 6 years ago
parent
commit
5b4b0b9a8d

+ 3
- 2
src/test/java/com/zipcodewilmington/phonebook/PhoneBookTest.java View File

38
     public void removeTest1() {
38
     public void removeTest1() {
39
         PhoneBook testBook = new PhoneBook();
39
         PhoneBook testBook = new PhoneBook();
40
         testBook.addEntry("Kate", "4846569090");
40
         testBook.addEntry("Kate", "4846569090");
41
+        testBook.addEntry("Vince", "3333333333");
41
         testBook.removeEntry("Kate");
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
     }