public class ReflectionEqualTo<T>
extends org.junit.internal.matchers.TypeSafeMatcher<T>
EqualsBuilder.reflectionEquals(Object, Object)
instead of a
class's equals(Object) implementation.Constructor and Description |
---|
ReflectionEqualTo(T expected)
Creates a new ReflectionEqualTo matcher with the expected value.
|
Modifier and Type | Method and Description |
---|---|
void |
describeTo(org.hamcrest.Description description) |
boolean |
matchesSafely(T actual) |
static <T> org.hamcrest.Matcher<T> |
reflectionEqualTo(T expected)
Matcher that compares objects using reflection.
|
public ReflectionEqualTo(T expected)
expected
- the expected valuepublic static <T> org.hamcrest.Matcher<T> reflectionEqualTo(T expected)
expected
- the expected objectpublic boolean matchesSafely(T actual)
matchesSafely
in class org.junit.internal.matchers.TypeSafeMatcher<T>
public void describeTo(org.hamcrest.Description description)
Copyright © 2002-2018 Atlassian. All Rights Reserved.