org.testinfected.hamcrest.dom
Class HasRootElement

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

public class HasRootElement
extends org.hamcrest.FeatureMatcher<org.w3c.dom.Document,org.w3c.dom.Element>


Constructor Summary
HasRootElement(org.hamcrest.Matcher<? super org.w3c.dom.Element> elementMatcher)
           
 
Method Summary
protected  org.w3c.dom.Element featureValueOf(org.w3c.dom.Document actual)
           
static org.hamcrest.Matcher<? super org.w3c.dom.Document> hasRootElement(org.hamcrest.Matcher<? super org.w3c.dom.Element> elementMatcher)
           
 
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

HasRootElement

public HasRootElement(org.hamcrest.Matcher<? super org.w3c.dom.Element> elementMatcher)
Method Detail

featureValueOf

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

hasRootElement

public static org.hamcrest.Matcher<? super org.w3c.dom.Document> hasRootElement(org.hamcrest.Matcher<? super org.w3c.dom.Element> elementMatcher)


Copyright © 2012. All Rights Reserved.