public class HasAttribute<T>
extends org.hamcrest.FeatureMatcher<org.springframework.ui.Model,T>
| Constructor and Description |
|---|
HasAttribute(java.lang.String key,
org.hamcrest.Matcher<? super T> valueMatcher) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public HasAttribute(java.lang.String key,
org.hamcrest.Matcher<? super T> valueMatcher)
protected T featureValueOf(org.springframework.ui.Model actual)
featureValueOf in class org.hamcrest.FeatureMatcher<org.springframework.ui.Model,T>public static <T> org.hamcrest.Matcher<org.springframework.ui.Model> hasAttribute(java.lang.String key,
T value)
public static <T> org.hamcrest.Matcher<org.springframework.ui.Model> hasAttributeValue(java.lang.String key,
org.hamcrest.Matcher<? super T> valueMatcher)
public static <T> org.hamcrest.Matcher<org.springframework.ui.Model> containsAttribute(java.lang.String key)