com.codeborne.xlstest.matchers.DoesNotContainText Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xls-test Show documentation
Show all versions of xls-test Show documentation
XLS Test: Excel testing library, created by Codeborne.
The newest version!
package com.codeborne.xlstest.matchers;
import com.codeborne.xlstest.XLS;
import org.hamcrest.Description;
public class DoesNotContainText extends XLSMatcher {
private final String substring;
public DoesNotContainText(String substring) {
this.substring = reduceSpaces(substring);
}
@Override
protected boolean matchesSafely(XLS item) {
boolean contains = new ContainsText(substring).matchesSafely(item);
return !contains;
}
@Override
public void describeTo(Description description) {
description.appendText("a XLS not containing text ").appendValue(reduceSpaces(substring));
}
}