org.hamcrest.Matchers 類的方法簽名
方法名 | 傳回類型 |
---|---|
startsWith | org.hamcrest.Matcher<kotlin.String!>! |
endsWith | |
contains | org.hamcrest.Matcher<kotlin.collections.(Mutable)Iterable<E!>!>! |
array | org.hamcrest.collection.IsArray<T!>! |
empty | org.hamcrest.Matcher<(kotlin.collections.MutableCollection<out E!>..kotlin.collections.Collection<E!>?)>! |
allOf | org.hamcrest.Matcher<T!>! |
hasSize | |
containsString | |
equalTo | |
hasProperty | |
hasValue | org.hamcrest.Matcher<(kotlin.collections.MutableMap<, out V!>..kotlin.collections.Map<, V!>?)>! |
theInstance | |
is | |
not | |
emptyArray | org.hamcrest.Matcher<kotlin.Array<(out) E!>!>! |
any | |
nullValue | org.hamcrest.Matcher<kotlin.Any!>! |
greaterThan | |
lessThan | |
both | org.hamcrest.core.CombinableMatcher.CombinableBothMatcher<LHS!>! |
greaterThanOrEqualTo | |
lessThanOrEqualTo | |
anything | |
anyOf | org.hamcrest.core.AnyOf<T!>! |
isOneOf | |
isA | |
hasKey | org.hamcrest.Matcher<kotlin.collections.(Mutable)Map<out K!, *>!>! |
hasItem | org.hamcrest.Matcher<kotlin.collections.(Mutable)Iterable<*>!>! |
hasItems | org.hamcrest.Matcher<kotlin.collections.(Mutable)Iterable<T!>!>! |
either | org.hamcrest.core.CombinableMatcher.CombinableEitherMatcher<LHS!>! |
hasEntry | org.hamcrest.Matcher<(kotlin.collections.MutableMap<out K!, out V!>..kotlin.collections.Map<out K!, V!>?)>! |
describedAs | |
everyItem | org.hamcrest.Matcher<kotlin.collections.(Mutable)Iterable<U!>!>! |
instanceOf | |
notNullValue | |
sameInstance | |
hasItemInArray | org.hamcrest.Matcher<kotlin.Array<(out) T!>!>! |
arrayContaining | |
arrayContainingInAnyOrder | |
arrayWithSize | |
emptyCollectionOf | org.hamcrest.Matcher<kotlin.collections.(Mutable)Collection<E!>!>! |
emptyIterable | |
emptyIterableOf | |
containsInAnyOrder | |
iterableWithSize | |
isIn | |
closeTo | org.hamcrest.Matcher<kotlin.Double!>! |
comparesEqualTo | |
equalToIgnoringCase | |
equalToIgnoringWhiteSpace | |
isEmptyString | |
isEmptyOrNullString | |
stringContainsInOrder | |
hasToString | |
typeCompatibleWith | org.hamcrest.Matcher<java.lang.Class<*>!>! |
eventFrom | org.hamcrest.Matcher<java.util.EventObject!>! |
samePropertyValuesAs | |
hasXPath | org.hamcrest.Matcher<org.w3c.dom.Node!>! |