org.testinfected.hamcrest.dom
Class HasUniqueSelector
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<Element>
org.testinfected.hamcrest.dom.HasUniqueSelector
- All Implemented Interfaces:
- org.hamcrest.Matcher<Element>, org.hamcrest.SelfDescribing
public class HasUniqueSelector
- extends org.hamcrest.TypeSafeDiagnosingMatcher<Element>
| Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher |
describeMismatch, matches |
| Methods inherited from class org.hamcrest.BaseMatcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
HasUniqueSelector
public HasUniqueSelector(String selector,
org.hamcrest.Matcher<? super Element> subjectMatcher)
matchesSafely
protected boolean matchesSafely(Element doc,
org.hamcrest.Description mismatchDescription)
- Specified by:
matchesSafely in class org.hamcrest.TypeSafeDiagnosingMatcher<Element>
describeTo
public void describeTo(org.hamcrest.Description description)
hasUniqueSelector
public static org.hamcrest.Matcher<Element> hasUniqueSelector(String selector)
hasUniqueSelector
public static org.hamcrest.Matcher<Element> hasUniqueSelector(String selector,
org.hamcrest.Matcher<? super Element>... subjectMatchers)
hasUniqueSelector
public static org.hamcrest.Matcher<Element> hasUniqueSelector(String selector,
org.hamcrest.Matcher<? super Element> subjectMatcher)
Copyright © 2015. All Rights Reserved.