Browse Source

work in progress

Katrice Williams-Dredden 6 years ago
parent
commit
d68b5ef6d2

+ 7
- 4
src/main/java/com/zipcodewilmington/phonebook/PhoneBook.java View File

14
         TreeMap<String, String>entry = new TreeMap();
14
         TreeMap<String, String>entry = new TreeMap();
15
     }
15
     }
16
 
16
 
17
-    public void setLookup(String name){
17
+
18
+    public void setAdd(String name, String number){
19
+
18
 
20
 
19
     }
21
     }
20
 
22
 
21
-    public void setAdd(String name, String number){
23
+    public void setLookup(String name){
22
 
24
 
23
     }
25
     }
24
 
26
 
38
         return null;
40
         return null;
39
     }
41
     }
40
 
42
 
41
-    public String getLookup(){
43
+    public String getAdd(){
42
         return null;
44
         return null;
43
     }
45
     }
44
 
46
 
45
-    public String getAdd(){
47
+    public String getLookup(){
46
         return null;
48
         return null;
47
     }
49
     }
48
 
50
 
51
+
49
     public String getRemove(){
52
     public String getRemove(){
50
         return null;
53
         return null;
51
     }
54
     }

+ 11
- 0
src/test/java/com/zipcodewilmington/phonebook/PhoneBookTest.java View File

11
 public class PhoneBookTest {
11
 public class PhoneBookTest {
12
 
12
 
13
     @Test
13
     @Test
14
+    public void AddTest(){
15
+        //Given
16
+        String expectedname = "Marlon";
17
+        String expectednumber = "8005674563";
18
+        //When
19
+        PhoneBook phoneBook = new PhoneBook();
20
+        //Then
21
+
22
+    }
23
+
24
+    @Test
14
     public void LookupTest(){
25
     public void LookupTest(){
15
         //Given
26
         //Given
16
         String expectedname = "Katrice";
27
         String expectedname = "Katrice";

+ 6
- 0
src/test/java/com/zipcodewilmington/phonebook/TestPerson.java View File

7
 public class TestPerson {
7
 public class TestPerson {
8
 
8
 
9
     @Test
9
     @Test
10
+
11
+
12
+
13
+
14
+
15
+    @Test
10
     public void testGetName() {
16
     public void testGetName() {
11
         Person person = new Person("Nathaniel", "8567744773");
17
         Person person = new Person("Nathaniel", "8567744773");
12
         String expected = "Nathaniel";
18
         String expected = "Nathaniel";