java.lang.Object#equals invokedMethod?
| Modifier and Type | Field and Description |
|---|---|
| private final Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| public void | describeTo(Description
The description to be built or appended to. description)Implements org. |
| public static <T> Matcher | equalTo(T operand)
Creates a matcher that matches when the examined object is logically equal to the specified
|
| private static boolean | |
| public boolean | matches(Object
the object against which the matcher is evaluated. actualValue)Implements org. |
| expectedValue | back to summary |
|---|---|
| private final Object expectedValue | |
| IsEqual | back to summary |
|---|---|
| public IsEqual(T equalArg) | |
| areArrayElementsEqual | back to summary |
|---|---|
| private static boolean areArrayElementsEqual(Object actualArray, Object expectedArray) | |
| areArrayLengthsEqual | back to summary |
|---|---|
| private static boolean areArrayLengthsEqual(Object actualArray, Object expectedArray) | |
| areArraysEqual | back to summary |
|---|---|
| private static boolean areArraysEqual(Object actualArray, Object expectedArray) | |
| areEqual | back to summary |
|---|---|
| private static boolean areEqual(Object actual, Object expected) | |
| describeTo | back to summary |
|---|---|
| public void describeTo(Description description) Implements org. Doc from org. Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately.
| |
| equalTo | back to summary |
|---|---|
| public static <T> Matcher Creates a matcher that matches when the examined object is logically equal to the specified
If the specified operand is The created matcher provides a special behaviour when examining For example:
assertThat("foo", equalTo("foo"));
assertThat(new String[] {"foo", "bar"}, equalTo(new String[] {"foo", "bar"}));
| |
| isArray | back to summary |
|---|---|
| private static boolean isArray(Object o) | |
| matches | back to summary |
|---|---|
| public boolean matches(Object actualValue) Implements org. Doc from org. Evaluates the matcher for argument item. This method matches against Object, instead of the generic type T. This is because the caller of the Matcher does not know at runtime what the type is (because of type erasure with Java generics). It is down to the implementations to check the correct type. | |