|
@@ -26,19 +26,19 @@ public class HamletParserTest {
|
26
|
26
|
|
27
|
27
|
@Test
|
28
|
28
|
public void testFindHoratio() {
|
29
|
|
- String findHoratio = "Horatio Kim James, King Author";
|
|
29
|
+ String Sentence = hamletText;
|
30
|
30
|
|
31
|
31
|
String expected = "Horatio";
|
32
|
|
- String actual = HamletParser.findHoratio(findHoratio);
|
|
32
|
+ String actual = HamletParser.findHoratio(Sentence, expected);
|
33
|
33
|
|
34
|
34
|
Assert.assertEquals(expected,actual);
|
35
|
35
|
}
|
36
|
36
|
@Test
|
37
|
37
|
public void testFindHamlet() {
|
38
|
|
- String findHamlet = "Hamlet Kim James, King Author";
|
|
38
|
+ String Sentence = hamletText;
|
39
|
39
|
|
40
|
40
|
String expected = "Hamlet";
|
41
|
|
- String actual = HamletParser.findHamlet(findHamlet);
|
|
41
|
+ String actual = HamletParser.findHamlet(Sentence, expected);
|
42
|
42
|
|
43
|
43
|
Assert.assertEquals(expected,actual);
|
44
|
44
|
}
|