com.lexicalscope.fluentreflection
Class ReflectionMatcher<T>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<T>
com.lexicalscope.fluentreflection.ReflectionMatcher<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing
public abstract class ReflectionMatcher<T>
- extends org.hamcrest.TypeSafeMatcher<T>
Base class for all the matchers included in the library.
- Author:
- tim
Method Summary |
ReflectionMatcher<T> |
and(org.hamcrest.Matcher<? super T> matcher)
Creates an "and" matcher combining this matcher and the given one |
ReflectionMatcher<T> |
or(org.hamcrest.Matcher<? super T> matcher)
Creates an "or" matcher combining this matcher and the given one |
Methods inherited from class org.hamcrest.TypeSafeMatcher |
describeMismatch, describeMismatchSafely, matches, matchesSafely |
Methods inherited from class org.hamcrest.BaseMatcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
Methods inherited from interface org.hamcrest.SelfDescribing |
describeTo |
ReflectionMatcher
public ReflectionMatcher()
and
public ReflectionMatcher<T> and(org.hamcrest.Matcher<? super T> matcher)
- Creates an "and" matcher combining this matcher and the given one
- Parameters:
matcher
- The matcher to be put in and with this one
- Returns:
- A matcher that return true if this matcher and the passed one
return true
or
public ReflectionMatcher<T> or(org.hamcrest.Matcher<? super T> matcher)
- Creates an "or" matcher combining this matcher and the given one
- Parameters:
matcher
- The matcher to be put in or with this one
- Returns:
- A matcher that return true if this matcher or the passed one
return true
Copyright © 2011-2012 lexicalscope. All Rights Reserved.