Skip to content

Commit 08feb35

Browse files
committed
Fix typo in matcher's name
1 parent 0f8a732 commit 08feb35

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/com/codeborne/xlstest/XLS.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static Matcher<XLS> containsRow(String... cellTexts) {
5959
return new ContainsRow(cellTexts);
6060
}
6161

62-
public static Matcher<XLS> doesNotContainsText(String text) {
62+
public static Matcher<XLS> doesNotContainText(String text) {
6363
return new DoesNotContainText(text);
6464
}
6565
}

src/test/java/com/codeborne/xlstest/matchers/ContainsTextTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import java.util.Objects;
99

1010
import static com.codeborne.xlstest.XLS.containsText;
11-
import static com.codeborne.xlstest.XLS.doesNotContainsText;
11+
import static com.codeborne.xlstest.XLS.doesNotContainText;
1212
import static org.hamcrest.MatcherAssert.assertThat;
1313
import static org.hamcrest.Matchers.is;
1414
import static org.junit.Assert.fail;
@@ -55,14 +55,14 @@ public void canAssertThatXlsContainsText() throws IOException {
5555
@Test
5656
public void canAssertXlsDoesNotContainText() throws IOException {
5757
XLS xls = new XLS(Objects.requireNonNull(getClass().getClassLoader().getResource("statement.xls")));
58-
assertThat(xls, doesNotContainsText("null"));
58+
assertThat(xls, doesNotContainText("null"));
5959
}
6060

6161
@Test
6262
public void errorDescriptionForDoesNotContainTextMatcher() {
6363
XLS xls = new XLS(new File("src/test/resources/small.xls"));
6464
try {
65-
assertThat(xls, doesNotContainsText("Выписка"));
65+
assertThat(xls, doesNotContainText("Выписка"));
6666
fail("expected AssertionError");
6767
}
6868
catch (AssertionError expected) {

0 commit comments

Comments
 (0)