AbstractMatcher.java :  » Testing » abbot-1.0.1 » abbot » finder » matchers » Java Open Source

Java Open Source » Testing » abbot 1.0.1 
abbot 1.0.1 » abbot » finder » matchers » AbstractMatcher.java
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();
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.