|
|
|
|
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";
|