org.testinfected.hamcrest.dom
Class HasRootElement
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<T>
org.hamcrest.FeatureMatcher<org.w3c.dom.Document,org.w3c.dom.Element>
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 |
HasRootElement
public HasRootElement(org.hamcrest.Matcher<? super org.w3c.dom.Element> elementMatcher)
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.