|
@@ -15,7 +15,7 @@ public class HamletParserTest {
|
15
|
15
|
|
16
|
16
|
@Test
|
17
|
17
|
public void testChangeHamletToLeon() {
|
18
|
|
- String leon = hamletParser.changeHamletToLeon("Hamlet", "Leon");
|
|
18
|
+ String leon = hamletParser.changeWord("Hamlet", "Leon");
|
19
|
19
|
|
20
|
20
|
int expected = hamletParser.findWord(hamletText , "Hamlet");
|
21
|
21
|
int actual = hamletParser.findWord(leon , "Leon");
|
|
@@ -27,7 +27,7 @@ public class HamletParserTest {
|
27
|
27
|
|
28
|
28
|
@Test
|
29
|
29
|
public void testChangeHoratioToTariq() {
|
30
|
|
- String leon = hamletParser.changeHamletToLeon("Horatio", "Tariq");
|
|
30
|
+ String leon = hamletParser.changeWord("Horatio", "Tariq");
|
31
|
31
|
|
32
|
32
|
int expected = hamletParser.findWord(hamletText , "Horatio");
|
33
|
33
|
int actual = hamletParser.findWord(leon , "Tariq");
|