public class AssertMatcher<T> implements Matcher<T>, TypedMatcher, EquivalentMatcher
Checks if assertion is true
Matcher.DefaultImplsTypedMatcher.DefaultImpls| Constructor and Description |
|---|
AssertMatcher(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> assertFunction,
java.lang.String msg,
kotlin.reflect.KClass<?> argumentType,
boolean nullable)
Deprecated.
Checks if assertion is true
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkType(java.lang.Object arg)
Deprecated.
|
Matcher<java.lang.Object> |
equivalent()
Deprecated.
|
kotlin.reflect.KClass<?> |
getArgumentType()
Deprecated.
|
kotlin.jvm.functions.Function1<T,java.lang.Boolean> |
getAssertFunction()
Deprecated.
|
java.lang.String |
getMsg()
Deprecated.
|
boolean |
getNullable()
Deprecated.
|
boolean |
match(T arg)
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
match, substitutecheckType, getArgumentTypeequivalentpublic AssertMatcher(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> assertFunction,
java.lang.String msg,
kotlin.reflect.KClass<?> argumentType,
boolean nullable)
Checks if assertion is true
public Matcher<java.lang.Object> equivalent()
public boolean checkType(java.lang.Object arg)
public boolean match(T arg)
public java.lang.String toString()
public kotlin.jvm.functions.Function1<T,java.lang.Boolean> getAssertFunction()
public java.lang.String getMsg()
public kotlin.reflect.KClass<?> getArgumentType()
public boolean getNullable()