org.rhq.test.jmock
Class PropertyMatcher<T>

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<T>
          extended by 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.


Constructor Summary
PropertyMatcher(T expected)
           
 
Method Summary
 void describeTo(org.hamcrest.Description description)
           
 boolean matchesSafely(T actual)
           
 
Methods inherited from class org.hamcrest.TypeSafeMatcher
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
 

Constructor Detail

PropertyMatcher

public PropertyMatcher(T expected)
Method Detail

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.