@Test public void doesNotMatchIfPropertyDoesNotExist() { assertDoesNotMatch(hasProperty("aNonExistentProp"), bean); }
public HasProperty(String propertyName) { this.propertyName = propertyName; }
HasProperty extends TypeSafeMatcher<T> { public HasProperty(String propertyName) { this.propertyName = propertyName; } }
HasProperty extends TypeSafeMatcher<T> { public HasProperty(String propertyName) { this.propertyName = propertyName; } HasProperty(String propertyName); }
HasProperty extends TypeSafeMatcher<T> { public HasProperty(String propertyName) { this.propertyName = propertyName; } HasProperty(String propertyName); @Override boolean matchesSafely(T obj); @Override void describeMismatchSafely(T item, Description mismatchDescription); @Override void describeTo(Description description); static Matcher<T> hasProperty(String propertyName); }
HasProperty extends TypeSafeMatcher<T> { public HasProperty(String propertyName) { this.propertyName = propertyName; } HasProperty(String propertyName); @Override boolean matchesSafely(T obj); @Override void describeMismatchSafely(T item, Description mismatchDescription); @Override void describeTo(Description description); static Matcher<T> hasProperty(String propertyName);  }