org.testinfected.hamcrest.dom
Class HasSelector

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeDiagnosingMatcher<Element>
          extended by org.testinfected.hamcrest.dom.HasSelector
All Implemented Interfaces:
org.hamcrest.Matcher<Element>, org.hamcrest.SelfDescribing

public class HasSelector
extends org.hamcrest.TypeSafeDiagnosingMatcher<Element>


Constructor Summary
HasSelector(String selector)
           
HasSelector(String selector, org.hamcrest.Matcher<Iterable<Element>> subjectsMatchers)
           
 
Method Summary
 void describeTo(org.hamcrest.Description description)
           
static org.hamcrest.Matcher<Element> hasSelector(String selector)
           
static org.hamcrest.Matcher<Element> hasSelector(String selector, org.hamcrest.Matcher<? super Element>... subjectsMatchers)
           
static org.hamcrest.Matcher<Element> hasSelector(String selector, org.hamcrest.Matcher<Iterable<Element>> subjectsMatcher)
           
protected  boolean matchesSafely(Element element, org.hamcrest.Description mismatchDescription)
           
 
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, 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
 

Constructor Detail

HasSelector

public HasSelector(String selector)

HasSelector

public HasSelector(String selector,
                   org.hamcrest.Matcher<Iterable<Element>> subjectsMatchers)
Method Detail

matchesSafely

protected boolean matchesSafely(Element element,
                                org.hamcrest.Description mismatchDescription)
Specified by:
matchesSafely in class org.hamcrest.TypeSafeDiagnosingMatcher<Element>

describeTo

public void describeTo(org.hamcrest.Description description)

hasSelector

public static org.hamcrest.Matcher<Element> hasSelector(String selector)

hasSelector

public static org.hamcrest.Matcher<Element> hasSelector(String selector,
                                                        org.hamcrest.Matcher<? super Element>... subjectsMatchers)

hasSelector

public static org.hamcrest.Matcher<Element> hasSelector(String selector,
                                                        org.hamcrest.Matcher<Iterable<Element>> subjectsMatcher)


Copyright © 2015. All Rights Reserved.