|
@@ -28,8 +28,8 @@ import org.junit.Test;
|
28
|
28
|
public void testAdd(){
|
29
|
29
|
//Given
|
30
|
30
|
PhoneBook book = new PhoneBook();
|
31
|
|
- String name = "John";
|
32
|
|
- String phoneNumber = "224-111-222";
|
|
31
|
+ String name = "Sam";
|
|
32
|
+ String phoneNumber = "222-333-444";
|
33
|
33
|
|
34
|
34
|
//When
|
35
|
35
|
//book.add(name, phoneNumber);
|
|
@@ -43,8 +43,8 @@ import org.junit.Test;
|
43
|
43
|
{
|
44
|
44
|
//Given
|
45
|
45
|
PhoneBook book = new PhoneBook();
|
46
|
|
- String name = "Yashoda";
|
47
|
|
- String phoneNumber = "211-111-2222";
|
|
46
|
+ String name = "John";
|
|
47
|
+ String phoneNumber = "111-222-333";
|
48
|
48
|
//book.lookup(name);
|
49
|
49
|
String actualOutput=book.lmeookup(name);
|
50
|
50
|
|
|
@@ -71,8 +71,8 @@ import org.junit.Test;
|
71
|
71
|
public void testRemove()
|
72
|
72
|
{
|
73
|
73
|
PhoneBook book= new PhoneBook();
|
74
|
|
- String expectedname="Yashoda";
|
75
|
|
- String name="Yashoda";
|
|
74
|
+ String expectedname="John";
|
|
75
|
+ String name="John";
|
76
|
76
|
|
77
|
77
|
// String actual=
|
78
|
78
|
String actualOutput=book.hasRemove(name);
|
|
@@ -83,7 +83,7 @@ import org.junit.Test;
|
83
|
83
|
public void testReserveLookup()
|
84
|
84
|
{
|
85
|
85
|
PhoneBook book= new PhoneBook();
|
86
|
|
- String name="dog";
|
|
86
|
+ String name="Dog";
|
87
|
87
|
String phoneNumber = book.lmeookup(name);
|
88
|
88
|
String actualOutput = book.reverseLookup(phoneNumber);
|
89
|
89
|
//String actualOutput=book.hashEntry(name, phoneNumber) ;
|