Yesoda Sanka il y a 6 ans
Parent
révision
85970cee52

+ 1
- 1
src/main/java/com/zipcodewilmington/phonebook/PhoneBook.java Voir le fichier

@@ -53,7 +53,7 @@ public class PhoneBook {
53 53
     public void addInitialList () {
54 54
 
55 55
         this.setTreemp("Dog", "222-333-444");
56
-        this.setTreemp("Yashoda","111-222-333");
56
+        this.setTreemp("John","111-222-333");
57 57
         this.setTreemp("Zebra","222-4444-333");
58 58
 
59 59
     }

+ 7
- 7
src/test/java/com/zipcodewilmington/phonebook/PhoneBookTest.java Voir le fichier

@@ -28,8 +28,8 @@ import org.junit.Test;
28 28
         public void testAdd(){
29 29
             //Given
30 30
             PhoneBook book = new PhoneBook();
31
-            String name = "John";
32
-            String phoneNumber = "224-111-222";
31
+            String name = "Sam";
32
+            String phoneNumber = "222-333-444";
33 33
 
34 34
             //When
35 35
             //book.add(name, phoneNumber);
@@ -43,8 +43,8 @@ import org.junit.Test;
43 43
         {
44 44
             //Given
45 45
             PhoneBook book = new PhoneBook();
46
-            String name = "Yashoda";
47
-            String phoneNumber = "211-111-2222";
46
+            String name = "John";
47
+            String phoneNumber = "111-222-333";
48 48
             //book.lookup(name);
49 49
             String actualOutput=book.lmeookup(name);
50 50
 
@@ -71,8 +71,8 @@ import org.junit.Test;
71 71
         public void testRemove()
72 72
         {
73 73
             PhoneBook  book= new PhoneBook();
74
-            String expectedname="Yashoda";
75
-            String name="Yashoda";
74
+            String expectedname="John";
75
+            String name="John";
76 76
 
77 77
            // String actual=
78 78
             String actualOutput=book.hasRemove(name);
@@ -83,7 +83,7 @@ import org.junit.Test;
83 83
        public void testReserveLookup()
84 84
        {
85 85
             PhoneBook  book= new PhoneBook();
86
-            String name="dog";
86
+            String name="Dog";
87 87
             String phoneNumber = book.lmeookup(name);
88 88
             String actualOutput = book.reverseLookup(phoneNumber);
89 89
             //String actualOutput=book.hashEntry(name, phoneNumber) ;