|
@@ -19,7 +19,6 @@ public class PhoneBookTest
|
19
|
19
|
@Test
|
20
|
20
|
public void testAdd()
|
21
|
21
|
{
|
22
|
|
- //plug in a String name here using methods from main class
|
23
|
22
|
String name = "Ryan";
|
24
|
23
|
String phoneNumber= "123-456-7890";
|
25
|
24
|
pb.add(name, phoneNumber);
|
|
@@ -31,9 +30,12 @@ public class PhoneBookTest
|
31
|
30
|
public void testRemove()
|
32
|
31
|
{
|
33
|
32
|
String name = "Ryan";
|
34
|
|
- String phoneNumber= "123-456-7890";
|
35
|
|
-
|
|
33
|
+ String phoneNumber= "123-456-7890";
|
|
34
|
+ String name1 = "Marcus";
|
|
35
|
+ String phoneNumber1= "650-789-1234";
|
36
|
36
|
pb.add(name, phoneNumber);
|
|
37
|
+
|
|
38
|
+
|
37
|
39
|
pb.remove(name);
|
38
|
40
|
assertTrue(phonebook.isEmpty());
|
39
|
41
|
|
|
@@ -83,9 +85,4 @@ public class PhoneBookTest
|
83
|
85
|
assertEquals(expected, pb.display());
|
84
|
86
|
}
|
85
|
87
|
|
86
|
|
- @Test
|
87
|
|
- public void testEntries()
|
88
|
|
- {
|
89
|
|
- assertEquals(null, 1);
|
90
|
|
- }
|
91
|
88
|
}
|