package abbot.finder.matchers;
import abbot.finder.Matcher;
import com.windowtester.runtime.util.StringComparator;
/** 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 StringComparator.matches(actual, expected);
}
public String toString() {
return getClass().getName();
}
}