com.atlassian.confluence.it
Class RegexMatcher

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<java.lang.String>
          extended by com.atlassian.confluence.it.RegexMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<java.lang.String>, org.hamcrest.SelfDescribing

public class RegexMatcher
extends org.hamcrest.TypeSafeMatcher<java.lang.String>

A Hamcrest Matcher which catches Strings that match a given regex.

Since:
v5.2

Method Summary
static RegexMatcher containsPattern(java.lang.String regex)
           
 void describeTo(org.hamcrest.Description description)
           
static RegexMatcher matchesPattern(java.lang.String regex)
           
 boolean matchesSafely(java.lang.String string)
           
 
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matches
 
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

matchesSafely

public boolean matchesSafely(java.lang.String string)
Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<java.lang.String>

describeTo

public void describeTo(org.hamcrest.Description description)

containsPattern

public static RegexMatcher containsPattern(java.lang.String regex)

matchesPattern

public static RegexMatcher matchesPattern(java.lang.String regex)


Copyright © 2003-2014 Atlassian. All Rights Reserved.