-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathTextFinderTest.java
More file actions
52 lines (41 loc) · 1.72 KB
/
Copy pathTextFinderTest.java
File metadata and controls
52 lines (41 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import http.helpers.TextFinder;
import org.junit.Assert;
import org.junit.Test;
public class TextFinderTest {
@Test
public void verifyThatSimpleTextCouldBeFound2() {
Assert.assertTrue(TextFinder.textIsFound("abc das", "21dsabcdasas"));
}
@Test
public void verifyThatSimpleTextCouldBeFound3() {
Assert.assertTrue(TextFinder.textIsFound("Level 4", "21dsabc@/asaslevel$%sdfg4"));
}
@Test
public void verifyThatSimpleTextCouldBeFound4() {
Assert.assertTrue(TextFinder.textIsFound("Try Again", " gh hgh 6%^7 hjgasd 7^& dfg!44dbTRYAGAIN#%hjkh jkhjkhjkh ^&(* hjkhk"));
}
@Test
public void verifyThatSimpleTextCouldBeFound5() {
Assert.assertTrue(TextFinder.textIsFound("Try Again", " gh hgh 6%^7 hjgasd 7^& dfg!44dbTRY@GAIN#%hjkh jkhjkhjkh ^&(* hjkhk"));
}
@Test
public void verifyThatSimpleTextCouldBeFound6() {
Assert.assertTrue(TextFinder.textIsFound("Try Again", " gh hgh 6%^7 hjgasd 7^& dfg!44d T@Y AGAIN#%hjk"));
}
@Test
public void verifyThatSimpleTextCouldBeFound7() {
Assert.assertTrue(TextFinder.textIsFound("Try Again", " gh thgh 6%^7 hjgasd 7^& dfg!44d T@Y GAIN#%hjk"));
}
@Test
public void verifyThatSimpleTextCouldBeFound8() {
Assert.assertTrue(TextFinder.textIsFound("Try Again", " gh try gh 6%^7 hjgasd 7^& dfg!44d T@y GaIN#%hjk in"));
}
@Test
public void verifyThatSimpleTextShouldNotBeFound1() {
Assert.assertFalse(TextFinder.textIsFound("Tryagain", "21dsabc againdasas"));
}
@Test
public void verifyThatSimpleTextShouldNotBeFound2() {
Assert.assertFalse(TextFinder.textIsFound("Try Again", " gh t$y gh 6%^7 hjgasd 7^& dfg!44d T@Y GIN#%hjk in"));
}
}