2020-10-12 20:49:10 +08:00
|
|
|
# Release Note
|
|
|
|
|
2020-12-31 07:30:21 +08:00
|
|
|
## 0.4.7
|
|
|
|
- 修复由于`MOCK_CONTEXT`引入的堆栈大小错误
|
|
|
|
- 修复Windows下的`Gradle`构建路径错误
|
|
|
|
|
2020-12-30 07:24:49 +08:00
|
|
|
## 0.4.6
|
|
|
|
- 修复一处`IINC`字节码处理异常
|
|
|
|
- 支持使用`TestableTool.MOCK_CONTEXT`变量为Mock方法注入额外上下文参数
|
|
|
|
- 不再推荐使用`TestableTool.TEST_CASE`变量来区分测试用例
|
|
|
|
|
2020-12-27 20:13:07 +08:00
|
|
|
## 0.4.5
|
|
|
|
- 修复IntelliJ 2020.3+环境下的私有成员访问编译期错误
|
|
|
|
- 修复潜在的跨用例初始化空指针异常 (issue-20)
|
|
|
|
- 支持将运行期修改后的字节码Dump到本地文件
|
|
|
|
|
2020-12-24 07:33:45 +08:00
|
|
|
## 0.4.4
|
|
|
|
- 修复无法访问参数类型包含接口的私有方法的BUG (issue-15)
|
|
|
|
- 修复Mock无参数的静态方法会出错的BUG (issue-16)
|
|
|
|
|
2020-12-21 10:27:46 +08:00
|
|
|
## 0.4.3
|
2020-12-24 07:33:45 +08:00
|
|
|
- 完善了对私有静态成员的直接访问能力
|
2020-12-21 10:27:46 +08:00
|
|
|
|
2020-12-15 19:19:58 +08:00
|
|
|
## 0.4.2
|
2020-12-27 20:13:07 +08:00
|
|
|
- 支持通过Maven插件设置`TestableAgent`的全局日志级别
|
|
|
|
- 修复测试类可能被重复注入多余字节码的BUG
|
|
|
|
- 修复一处导致跨行的方法调用Mock报错的BUG
|
2020-12-15 19:19:58 +08:00
|
|
|
|
2020-12-12 00:05:53 +08:00
|
|
|
## 0.4.1
|
2020-12-27 20:13:07 +08:00
|
|
|
- `@TestableMock`注解已弃用,推荐使用`@MockMethod`和`@MockConstructor`注解
|
2020-12-12 00:05:53 +08:00
|
|
|
|
2020-12-11 12:22:22 +08:00
|
|
|
## 0.4.0
|
2020-12-27 20:13:07 +08:00
|
|
|
- 修复由于默认类加载器变化导致JVM 9+运行时Mock出错的BUG
|
|
|
|
- 修复多个测试类包含同名Mock方法时潜在的串号问题
|
|
|
|
- 重构项目结构,增加用于简化依赖配置的`testable-all`模块
|
|
|
|
- `TestableTool`中与用户无关的内容迁移到了`TestableConst`类型
|
2020-12-11 12:22:22 +08:00
|
|
|
|
2020-12-01 23:54:04 +08:00
|
|
|
## 0.3.2
|
2020-12-27 20:13:07 +08:00
|
|
|
- 支持在Gradle项目中使用私有成员访问和快速Mock功能
|
|
|
|
- 支持通过`PrivateAccessor`工具类访问私有静态成员
|
2020-11-24 23:18:12 +08:00
|
|
|
|
|
|
|
## 0.3.1
|
2020-12-27 20:13:07 +08:00
|
|
|
- 支持使用`@MockWith`注解打印详细Mock执行过程
|
2020-11-18 11:03:53 +08:00
|
|
|
|
|
|
|
## v0.3.0
|
2020-12-27 20:13:07 +08:00
|
|
|
- 增加`without()`校验器用于匹配指定Mock方法从未被调用的场景
|
|
|
|
- 支持对Mock调用参数验证时使用模糊匹配
|
2020-11-10 14:10:14 +08:00
|
|
|
|
2020-11-07 23:39:21 +08:00
|
|
|
## v0.2.2
|
2020-12-27 20:13:07 +08:00
|
|
|
- 支持对Mock调用参数进行校验
|
|
|
|
- 修复JVM 9+的兼容性问题
|
2020-11-07 23:39:21 +08:00
|
|
|
|
2020-10-27 23:02:31 +08:00
|
|
|
## v0.2.1
|
2020-12-27 20:13:07 +08:00
|
|
|
- 支持Mock静态方法
|
|
|
|
- 支持Mock Kotlin Companion对象的方法
|
|
|
|
- 支持Mock接口或父类引用指向子类实例时的调用
|
2020-10-27 23:02:31 +08:00
|
|
|
|
2020-10-22 20:57:02 +08:00
|
|
|
## v0.2.0
|
2020-12-27 20:13:07 +08:00
|
|
|
- 支持通过`TestableTool`工具类识别当前的调用上下文
|
|
|
|
- 增加`testable-maven-plugin`模块用于简化运行时JavaAgent配置
|
|
|
|
- 不再需要使用`@EnableTestable`注释显式标记测试类
|
|
|
|
- 重名了现有的各种注解,以便与更好的与实际功能对应
|
2020-10-20 22:47:25 +08:00
|
|
|
|
2020-10-25 20:40:44 +08:00
|
|
|
## v0.1.0
|
2020-10-14 20:18:45 +08:00
|
|
|
- move generated agent jar to class folder
|
2020-10-22 20:57:02 +08:00
|
|
|
- support mock method of any object
|
2020-10-12 20:49:10 +08:00
|
|
|
|
2020-10-14 20:18:45 +08:00
|
|
|
## v0.0.5
|
|
|
|
- use dynamically runtime modification to replace static `e.java` file
|
|
|
|
- get rid of unit test framework dependence
|
|
|
|
- add testable ref field in test class at runtime instead of compile time
|
|
|
|
|
|
|
|
## v0.0.4
|
|
|
|
- use runtime byte code rewrite to invoke testable setup method
|
|
|
|
- add `TestableUtil` class to fetch current test case and invocation source
|
2020-10-12 20:49:10 +08:00
|
|
|
|
|
|
|
## v0.0.3
|
|
|
|
- use global method invoke to access private members instead of modification in place
|
|
|
|
- use `e.java` replace `testable` class make code more readable
|
|
|
|
- introduce `agent` module, use runtime byte code modification to support new operation and member method mocking
|
|
|
|
|
2020-10-14 20:18:45 +08:00
|
|
|
## v0.0.2
|
|
|
|
- add support of member method mocking by compile time code modification
|
2020-10-12 20:49:10 +08:00
|
|
|
|
2020-10-14 20:18:45 +08:00
|
|
|
## v0.0.1
|
|
|
|
- PoC version
|
|
|
|
- use compile time code modification to support new operation mocking and private field & method access
|