org.testinfected.hamcrest.dom
Class HasAttributeValue
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<T>
org.hamcrest.FeatureMatcher<Element,String>
org.testinfected.hamcrest.dom.HasAttributeValue
- All Implemented Interfaces:
- org.hamcrest.Matcher<Element>, org.hamcrest.SelfDescribing
public class HasAttributeValue
- extends org.hamcrest.FeatureMatcher<Element,String>
| 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 |
HasAttributeValue
public HasAttributeValue(String attributeName,
org.hamcrest.Matcher<? super String> valueMatcher)
featureValueOf
protected String featureValueOf(Element actual)
- Specified by:
featureValueOf in class org.hamcrest.FeatureMatcher<Element,String>
hasAttribute
public static org.hamcrest.Matcher<Element> hasAttribute(String name,
String value)
hasId
public static org.hamcrest.Matcher<Element> hasId(String id)
hasName
public static org.hamcrest.Matcher<Element> hasName(String name)
hasClassName
public static org.hamcrest.Matcher<Element> hasClassName(String className)
hasAttribute
public static org.hamcrest.Matcher<Element> hasAttribute(String name,
org.hamcrest.Matcher<? super String> valueMatcher)
Copyright © 2015. All Rights Reserved.