Pārlūkot izejas kodu

work in progress

Katrice Williams-Dredden 6 gadus atpakaļ
vecāks
revīzija
d68b5ef6d2

+ 7
- 4
src/main/java/com/zipcodewilmington/phonebook/PhoneBook.java Parādīt failu

@@ -14,11 +14,13 @@ public class PhoneBook {
14 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,14 +40,15 @@ public class PhoneBook {
38 40
         return null;
39 41
     }
40 42
 
41
-    public String getLookup(){
43
+    public String getAdd(){
42 44
         return null;
43 45
     }
44 46
 
45
-    public String getAdd(){
47
+    public String getLookup(){
46 48
         return null;
47 49
     }
48 50
 
51
+
49 52
     public String getRemove(){
50 53
         return null;
51 54
     }

+ 11
- 0
src/test/java/com/zipcodewilmington/phonebook/PhoneBookTest.java Parādīt failu

@@ -11,6 +11,17 @@ import java.util.TreeMap;
11 11
 public class PhoneBookTest {
12 12
 
13 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 25
     public void LookupTest(){
15 26
         //Given
16 27
         String expectedname = "Katrice";

+ 6
- 0
src/test/java/com/zipcodewilmington/phonebook/TestPerson.java Parādīt failu

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