File tree 2 files changed +4
-4
lines changed
main/java/com/codeborne/xlstest
test/java/com/codeborne/xlstest/matchers
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public static Matcher<XLS> containsRow(String... cellTexts) {
59
59
return new ContainsRow (cellTexts );
60
60
}
61
61
62
- public static Matcher <XLS > doesNotContainsText (String text ) {
62
+ public static Matcher <XLS > doesNotContainText (String text ) {
63
63
return new DoesNotContainText (text );
64
64
}
65
65
}
Original file line number Diff line number Diff line change 8
8
import java .util .Objects ;
9
9
10
10
import static com .codeborne .xlstest .XLS .containsText ;
11
- import static com .codeborne .xlstest .XLS .doesNotContainsText ;
11
+ import static com .codeborne .xlstest .XLS .doesNotContainText ;
12
12
import static org .hamcrest .MatcherAssert .assertThat ;
13
13
import static org .hamcrest .Matchers .is ;
14
14
import static org .junit .Assert .fail ;
@@ -55,14 +55,14 @@ public void canAssertThatXlsContainsText() throws IOException {
55
55
@ Test
56
56
public void canAssertXlsDoesNotContainText () throws IOException {
57
57
XLS xls = new XLS (Objects .requireNonNull (getClass ().getClassLoader ().getResource ("statement.xls" )));
58
- assertThat (xls , doesNotContainsText ("null" ));
58
+ assertThat (xls , doesNotContainText ("null" ));
59
59
}
60
60
61
61
@ Test
62
62
public void errorDescriptionForDoesNotContainTextMatcher () {
63
63
XLS xls = new XLS (new File ("src/test/resources/small.xls" ));
64
64
try {
65
- assertThat (xls , doesNotContainsText ("Выписка" ));
65
+ assertThat (xls , doesNotContainText ("Выписка" ));
66
66
fail ("expected AssertionError" );
67
67
}
68
68
catch (AssertionError expected ) {
You can’t perform that action at this time.
0 commit comments