|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| AbstractMatcher.java | - | 50% | 50% | 50% |
|
||||||||||||||
| 1 |
package abbot.finder.matchers;
|
|
| 2 |
|
|
| 3 |
import abbot.finder.Matcher;
|
|
| 4 |
import abbot.util.ExtendedComparator;
|
|
| 5 |
|
|
| 6 |
/** Convenience abstract class to provide regexp-based matching of strings. */
|
|
| 7 |
public abstract class AbstractMatcher implements Matcher { |
|
| 8 |
/** Provides direct or regexp matching. To match a regular expression,
|
|
| 9 |
bound the expected string with slashes, e.g. /regular expression/.
|
|
| 10 |
*/
|
|
| 11 | 616 |
protected boolean stringsMatch(String expected, String actual) { |
| 12 | 616 |
return ExtendedComparator.stringsMatch(expected, actual);
|
| 13 |
} |
|
| 14 | 0 |
public String toString() {
|
| 15 | 0 |
return getClass().getName();
|
| 16 |
} |
|
| 17 |
} |
|
| 18 |
|
|
||||||||||