mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-01-08 19:30:47 +08:00
replace trump with simpson
This commit is contained in:
parent
f40834eb94
commit
92a2c69e05
@ -9,4 +9,4 @@ TestableMock简介
|
||||
|
||||
于是,我们开发了`TestableMock`,**一款特立独行的轻量Mock工具**。
|
||||
|
||||
![mock](https://testable-code.oss-cn-beijing.aliyuncs.com/mock.jpg)
|
||||
![mock](https://testable-code.oss-cn-beijing.aliyuncs.com/mock-simpson.png)
|
||||
|
@ -1,6 +1,8 @@
|
||||
主流Mock工具对比
|
||||
---
|
||||
|
||||
除`TestableMock`外,目前主要的Mock工具主要有`Mockito`、`PowerMock`和`JMockit`,基本差异如下:
|
||||
|
||||
| 工具 | 原理 | 最小Mock单元 | 对被Mock方法的限制 | 上手难度 |
|
||||
| ---- | ---- | ---- | ---- | ---- |
|
||||
| Mockito | 动态代理 | 类 | 不能Mock私有/静态和构造方法 | **低** |
|
||||
|
Loading…
Reference in New Issue
Block a user