package abbot.finder.matchers;
import abbot.finder.Matcher;
import abbot.util.ExtendedComparator;
/** Convenience abstract class to provide regexp-based matching of strings. */
public abstract class AbstractMatcher implements Matcher {
/** Provides direct or regexp matching. To match a regular expression,
bound the expected string with slashes, e.g. /regular expression/.
*/
protected boolean stringsMatch(String expected, String actual) {
return ExtendedComparator.stringsMatch(expected, actual);
}
public String toString() {
return getClass().getName();
}
}
|