|
@@ -1,3 +1,4 @@
|
|
1
|
+import org.junit.Assert;
|
1
|
2
|
import org.junit.Before;
|
2
|
3
|
import org.junit.Test;
|
3
|
4
|
|
|
@@ -15,17 +16,31 @@ public class HamletParserTest {
|
15
|
16
|
|
16
|
17
|
@Test
|
17
|
18
|
public void testChangeHamletToLeon() {
|
|
19
|
+ hamletText = hamletText.replaceAll("(?i)hamlet", "Leon");
|
|
20
|
+
|
|
21
|
+ Assert.assertFalse(hamletText.contains("Hamlet"));
|
|
22
|
+ Assert.assertFalse(hamletText.contains("hamlet"));
|
|
23
|
+ Assert.assertFalse(hamletText.contains("HAMLET"));
|
|
24
|
+
|
|
25
|
+
|
18
|
26
|
}
|
19
|
27
|
|
20
|
28
|
@Test
|
21
|
29
|
public void testChangeHoratioToTariq() {
|
22
|
|
- }
|
23
|
30
|
|
24
|
|
- @Test
|
25
|
|
- public void testFindHoratio() {
|
26
|
|
- }
|
|
31
|
+ hamletText = hamletText.replaceAll("(?i)horatio", "Tariq");
|
27
|
32
|
|
28
|
|
- @Test
|
29
|
|
- public void testFindHamlet() {
|
|
33
|
+ Assert.assertFalse(hamletText.contains("Horatio"));
|
|
34
|
+ Assert.assertFalse(hamletText.contains("horatio"));
|
|
35
|
+ Assert.assertFalse(hamletText.contains("HORATIO"));
|
30
|
36
|
}
|
31
|
|
-}
|
|
37
|
+}
|
|
38
|
+
|
|
39
|
+// @Test
|
|
40
|
+// public void testFindHoratio() {
|
|
41
|
+// }
|
|
42
|
+//
|
|
43
|
+// @Test
|
|
44
|
+// public void testFindHamlet() {
|
|
45
|
+// }
|
|
46
|
+//}
|