rjsmall90 6 years ago
parent
commit
721a699be0
2 changed files with 9 additions and 12 deletions
  1. 5
    8
      PhoneBookTest.java
  2. 4
    4
      package.bluej

+ 5
- 8
PhoneBookTest.java View File

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

+ 4
- 4
package.bluej View File

@@ -2,10 +2,10 @@
2 2
 dependency1.from=PhoneBookTest
3 3
 dependency1.to=PhoneBook
4 4
 dependency1.type=UsesDependency
5
-editor.fx.0.height=0
6
-editor.fx.0.width=0
7
-editor.fx.0.x=0
8
-editor.fx.0.y=0
5
+editor.fx.0.height=722
6
+editor.fx.0.width=1040
7
+editor.fx.0.x=73
8
+editor.fx.0.y=24
9 9
 objectbench.height=101
10 10
 objectbench.width=461
11 11
 package.divider.horizontal=0.6