MockK Guidebook
首页
白天
夜间
下载
阅读记录
书签管理
我的书签
添加书签
移除书签
编辑文档
Getting Started
来源 1
浏览
505
扫码
打印
2021-11-12 20:16:55
Getting Started
上一篇:
下一篇:
发布点评
Tips
Chains
Exclude recording
Return Unit
Timeouts
Argument matching
Capture arguments to check later
Argument of a certain type
Combine matchers
Allow any argument
Assertions with an argument
Check equality
Custom matching functions
Variable arguments
Comparables
Android Quickstart
Getting Started
Why use mocks
Why MockK
Method index
Migrating from Mockito
verify
when and do*
eq
any*
void methods
Create a mock
argThat
ArgumentCaptor
Mocking
Verify that functions were called
Mock constructors in code you don’t own
Chain mocks into hierarchies
Spy on existing classes
Automatically stub by relaxing
Coroutines and suspend functions
Mock singleton objects and static methods
Create more complicated answers for stubs
Create many mocks quickly with annotations
Mock top-level and extension functions
Stub out behaviour
Clear state
暂无相关搜索结果!
本文档使用
全库网
构建
×
思维导图备注
×
文章二维码
手机扫一扫,轻松掌上读
×
文档下载
请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
PDF
文档
EPUB
文档
MOBI
文档
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度