Browse Source

Finished everything except display() in Part I, fixed @Test's missing in PersonTest

Luis Romero 6 years ago
parent
commit
26b9bc9587
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/test/java/com/zipcodewilmington/phonebook/PersonTest.java

+ 2
- 0
src/test/java/com/zipcodewilmington/phonebook/PersonTest.java View File

33
         Assert.assertEquals(expected, actual);
33
         Assert.assertEquals(expected, actual);
34
     }
34
     }
35
 
35
 
36
+    @Test
36
     public void addPhoneNumbersTest() {
37
     public void addPhoneNumbersTest() {
37
         this.person = new Person("John Smith", "(000) 000-0000");
38
         this.person = new Person("John Smith", "(000) 000-0000");
38
         String expectedPhoneNumberToAdd1 = "(111) 111-1111";
39
         String expectedPhoneNumberToAdd1 = "(111) 111-1111";
48
 
49
 
49
     }
50
     }
50
 
51
 
52
+    @Test
51
     public void removePhoneNumbersTest() {
53
     public void removePhoneNumbersTest() {
52
         this.person = new Person("John Smith", "(000) 000-0000", "(111) 111-1111", "(222) 222-2222");
54
         this.person = new Person("John Smith", "(000) 000-0000", "(111) 111-1111", "(222) 222-2222");
53
         String expectedPhoneNumberToDelete1 = "(111) 111-1111";
55
         String expectedPhoneNumberToDelete1 = "(111) 111-1111";