org.testinfected.hamcrest.spring
Class HasAttribute<T>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<T>
org.hamcrest.FeatureMatcher<org.springframework.ui.Model,T>
org.testinfected.hamcrest.spring.HasAttribute<T>
- All Implemented Interfaces:
- org.hamcrest.Matcher<org.springframework.ui.Model>, org.hamcrest.SelfDescribing
public class HasAttribute<T>
- extends org.hamcrest.FeatureMatcher<org.springframework.ui.Model,T>
|
Constructor Summary |
HasAttribute(java.lang.String key,
org.hamcrest.Matcher<? super T> valueMatcher)
|
|
Method Summary |
static
<T> org.hamcrest.Matcher<org.springframework.ui.Model> |
|
containsAttribute(java.lang.String key)
|
protected T |
featureValueOf(org.springframework.ui.Model actual)
|
static
<T> org.hamcrest.Matcher<org.springframework.ui.Model> |
|
hasAttribute(java.lang.String key,
T value)
|
static
<T> org.hamcrest.Matcher<org.springframework.ui.Model> |
|
hasAttributeValue(java.lang.String key,
org.hamcrest.Matcher<? super T> valueMatcher)
|
| 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 |
HasAttribute
public HasAttribute(java.lang.String key,
org.hamcrest.Matcher<? super T> valueMatcher)
featureValueOf
protected T featureValueOf(org.springframework.ui.Model actual)
- Specified by:
featureValueOf in class org.hamcrest.FeatureMatcher<org.springframework.ui.Model,T>
hasAttribute
public static <T> org.hamcrest.Matcher<org.springframework.ui.Model> hasAttribute(java.lang.String key,
T value)
hasAttributeValue
public static <T> org.hamcrest.Matcher<org.springframework.ui.Model> hasAttributeValue(java.lang.String key,
org.hamcrest.Matcher<? super T> valueMatcher)
containsAttribute
public static <T> org.hamcrest.Matcher<org.springframework.ui.Model> containsAttribute(java.lang.String key)