org.infinitest.toolkit
Class RegexMatcher

java.lang.Object
  extended by org.hamcrest.BaseMatcher<String>
      extended by org.infinitest.toolkit.RegexMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<String>, org.hamcrest.SelfDescribing

public class RegexMatcher
extends org.hamcrest.BaseMatcher<String>

Hamcrest matcher that verifies that strings match regular expressions.

Author:
Paul Holser

Method Summary
 void describeTo(org.hamcrest.Description description)
           
 boolean matches(Object toMatch)
           
static org.hamcrest.Matcher<String> matchesRegex(String regex)
           
 
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

matches

public boolean matches(Object toMatch)

describeTo

public void describeTo(org.hamcrest.Description description)

matchesRegex

public static org.hamcrest.Matcher<String> matchesRegex(String regex)


© Copyright 2009 Paul R. Holser, Jr. All rights reserved. pholser@alumni.rice.edu