Bladeren bron

fixed remove test

Daniel Horowitz 6 jaren geleden
bovenliggende
commit
5b4b0b9a8d
1 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. 3
    2
      src/test/java/com/zipcodewilmington/phonebook/PhoneBookTest.java

+ 3
- 2
src/test/java/com/zipcodewilmington/phonebook/PhoneBookTest.java Bestand weergeven

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