org.testinfected.hamcrest.dom
Class HasChildren

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

public class HasChildren
extends org.hamcrest.FeatureMatcher<Element,Iterable<Element>>


Constructor Summary
HasChildren(org.hamcrest.Matcher<Iterable<Element>> childrenMatcher)
           
 
Method Summary
protected  Iterable<Element> featureValueOf(Element actual)
           
static org.hamcrest.Matcher<Element> hasChild(org.hamcrest.Matcher<? super Element> childMatcher)
           
static org.hamcrest.Matcher<Element> hasChildren(org.hamcrest.Matcher<? super Element>... childrenMatchers)
           
static org.hamcrest.Matcher<Element> hasChildren(org.hamcrest.Matcher<Iterable<Element>> childrenMatcher)
           
 
Methods inherited from class org.hamcrest.FeatureMatcher
describeTo, matchesSafely
 
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

HasChildren

public HasChildren(org.hamcrest.Matcher<Iterable<Element>> childrenMatcher)
Method Detail

featureValueOf

protected Iterable<Element> featureValueOf(Element actual)
Specified by:
featureValueOf in class org.hamcrest.FeatureMatcher<Element,Iterable<Element>>

hasChildren

public static org.hamcrest.Matcher<Element> hasChildren(org.hamcrest.Matcher<? super Element>... childrenMatchers)

hasChild

public static org.hamcrest.Matcher<Element> hasChild(org.hamcrest.Matcher<? super Element> childMatcher)

hasChildren

public static org.hamcrest.Matcher<Element> hasChildren(org.hamcrest.Matcher<Iterable<Element>> childrenMatcher)


Copyright © 2015. All Rights Reserved.