public class Matchers extends Object
| Constructor and Description |
|---|
Matchers() |
| Modifier and Type | Method and Description |
|---|---|
static <T> CustomisableMatcher<T> |
sameBeanAs(T expected)
Returns a
NullMatcher in case the expectation is null, a
IsEqualMatcher if it's a primitive, String or Enum
or a DiagnosingCustomisableMatcher otherwise. |
public static <T> CustomisableMatcher<T> sameBeanAs(T expected)
NullMatcher in case the expectation is null, a
IsEqualMatcher if it's a primitive, String or Enum
or a DiagnosingCustomisableMatcher otherwise.expected - the expected bean to match againstCustomisableMatcher instanceCopyright © 2015. All Rights Reserved.