public class InstanceOf extends Object implements ArgumentMatcher<Object>, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
InstanceOf.VarArgAware |
| Constructor and Description |
|---|
InstanceOf(Class<?> clazz) |
InstanceOf(Class<?> clazz,
String describedAs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(Object actual)
Informs if this matcher accepts the given argument.
|
String |
toString() |
public InstanceOf(Class<?> clazz)
public boolean matches(Object actual)
ArgumentMatcherThe method should never assert if the argument doesn't match. It should only return false.
See the example in the top level javadoc for ArgumentMatcher
matches in interface ArgumentMatcher<Object>actual - the argumentCopyright © 2024. All rights reserved.