Argument matching
Argument matchers are placeholders use to specify what values can be used in a function. They can be used with stubs and verification.
(TODO) Checking if an argument is equal using eq
, refEq
, isNull
, and more.
(TODO) any
thing goes here.
(TODO) Don’t allow anyone, just arguments that are ofType
.
Using withArg
to run assertions in verify
calls.
(TODO) Adding additional matchers with the match
function.
Capture arguments to check later
(TODO) capture
arguments out of stubs and verify calls into a slot
.
(TODO) Matching variable arguments with anyVararg
and more.
Matching smaller numbers, bigger numbers, and more
.
(TODO) Logical operators and
, or
, not
for matchers.
当前内容版权归 Tiger Oakes 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Tiger Oakes .