abbot.finder.matchers
Class AbstractMatcher

java.lang.Object
  extended by abbot.finder.matchers.AbstractMatcher
All Implemented Interfaces:
Matcher
Direct Known Subclasses:
ClassMatcher, NameMatcher

public abstract class AbstractMatcher
extends Object
implements Matcher

Convenience abstract class to provide regexp-based matching of strings.


Constructor Summary
AbstractMatcher()
           
 
Method Summary
protected  boolean stringsMatch(String expected, String actual)
          Provides direct or regexp matching.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface abbot.finder.Matcher
matches
 

Constructor Detail

AbstractMatcher

public AbstractMatcher()
Method Detail

stringsMatch

protected boolean stringsMatch(String expected,
                               String actual)
Provides direct or regexp matching. To match a regular expression, bound the expected string with slashes, e.g. /regular expression/.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge