com.atlassian.confluence.it
Class RegexMatcher
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<String>
com.atlassian.confluence.it.RegexMatcher
- All Implemented Interfaces:
- org.hamcrest.Matcher<String>, org.hamcrest.SelfDescribing
public class RegexMatcher
- extends org.hamcrest.TypeSafeMatcher<String>
A Hamcrest Matcher
which catches Strings that match a given regex.
- Since:
- v5.2
Methods inherited from class org.hamcrest.TypeSafeMatcher |
describeMismatch, describeMismatchSafely, matches |
Methods inherited from class org.hamcrest.BaseMatcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
matchesSafely
public boolean matchesSafely(String string)
- Specified by:
matchesSafely
in class org.hamcrest.TypeSafeMatcher<String>
describeTo
public void describeTo(org.hamcrest.Description description)
containsPattern
public static RegexMatcher containsPattern(String regex)
matchesPattern
public static RegexMatcher matchesPattern(String regex)
Copyright © 2003–2015 Atlassian. All rights reserved.