org.rhq.test.jmock
Class PropertyMatcher<T>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<T>
org.rhq.test.jmock.PropertyMatcher<T>
- Type Parameters:
T - The type of the object to match.
- All Implemented Interfaces:
- org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing
public class PropertyMatcher<T>
- extends org.hamcrest.TypeSafeMatcher<T>
A JMock custom matcher that matches based on the public, accessible properties of an object.
| Methods inherited from class org.hamcrest.TypeSafeMatcher |
matches |
| Methods inherited from class org.hamcrest.BaseMatcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
PropertyMatcher
public PropertyMatcher(T expected)
matchesSafely
public boolean matchesSafely(T actual)
- Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<T>
describeTo
public void describeTo(org.hamcrest.Description description)
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.