diff --git a/demo/java-demo/build.gradle b/demo/java-demo/build.gradle index 807bbd7..799a453 100644 --- a/demo/java-demo/build.gradle +++ b/demo/java-demo/build.gradle @@ -13,8 +13,8 @@ repositories { dependencies { testImplementation('org.junit.jupiter:junit-jupiter:5.6.2') - testImplementation('com.alibaba.testable:testable-all:0.4.8') - testAnnotationProcessor('com.alibaba.testable:testable-processor:0.4.8') + testImplementation('com.alibaba.testable:testable-all:0.4.9') + testAnnotationProcessor('com.alibaba.testable:testable-processor:0.4.9') } tasks.withType(JavaCompile) { diff --git a/demo/java-demo/pom.xml b/demo/java-demo/pom.xml index fa13036..58da8fb 100644 --- a/demo/java-demo/pom.xml +++ b/demo/java-demo/pom.xml @@ -12,7 +12,7 @@ 1.8 1.8 5.6.2 - 0.4.8 + 0.4.9 diff --git a/demo/kotlin-demo/build.gradle.kts b/demo/kotlin-demo/build.gradle.kts index adf514c..9298b68 100644 --- a/demo/kotlin-demo/build.gradle.kts +++ b/demo/kotlin-demo/build.gradle.kts @@ -16,8 +16,8 @@ dependencies { implementation("org.jetbrains.kotlin:kotlin-reflect") implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") testImplementation("org.junit.jupiter:junit-jupiter:5.6.2") - testImplementation("com.alibaba.testable:testable-all:0.4.8") - testAnnotationProcessor("com.alibaba.testable:testable-processor:0.4.8") + testImplementation("com.alibaba.testable:testable-all:0.4.9") + testAnnotationProcessor("com.alibaba.testable:testable-processor:0.4.9") } tasks.withType { diff --git a/demo/kotlin-demo/pom.xml b/demo/kotlin-demo/pom.xml index b44a400..a0f9b40 100644 --- a/demo/kotlin-demo/pom.xml +++ b/demo/kotlin-demo/pom.xml @@ -14,7 +14,7 @@ 1.8 1.8 5.6.2 - 0.4.8 + 0.4.9 diff --git a/docs/en-us/doc/release-note.md b/docs/en-us/doc/release-note.md index 9e62ac5..dbbea65 100644 --- a/docs/en-us/doc/release-note.md +++ b/docs/en-us/doc/release-note.md @@ -1,13 +1,17 @@ # Release Note +## 0.4.9 +- fix an issue cause by improperly bytecode processing while using `targetClass` parameter +- auto validate access target of `PrivateAccessor`, improve resistance to code refactoring + ## 0.4.8 -- Fix an issue of private method invocation failed in assignment statements -- Support using mock for testing with `SpringRunner` -- Support `targetClass` parameter in `@MockMethod` annotation +- fix an issue of private method invocation failed in assignment statements +- support using mock for testing with `SpringRunner` +- support `targetClass` parameter in `@MockMethod` annotation ## 0.4.7 -- Fix incorrect stack size caused by `MOCK_CONTEXT` variable initialization -- Fix incorrect gradle build path of under Windows operating system +- fix incorrect stack size caused by `MOCK_CONTEXT` variable initialization +- fix incorrect gradle build path of under Windows operating system ## 0.4.6 - fix an issue of `IINC` bytecode processing diff --git a/docs/en-us/doc/setup.md b/docs/en-us/doc/setup.md index 8b2aedc..e4bfcc6 100644 --- a/docs/en-us/doc/setup.md +++ b/docs/en-us/doc/setup.md @@ -15,7 +15,7 @@ It is recommended to add a `property` field that identifies the TestableMock ver ```xml - 0.4.8 + 0.4.9 ``` @@ -62,8 +62,8 @@ Add dependence of `TestableMock` in `build.gradle` file: ```groovy dependencies { - testImplementation('com.alibaba.testable:testable-all:0.4.8') - testAnnotationProcessor('com.alibaba.testable:testable-processor:0.4.8') + testImplementation('com.alibaba.testable:testable-all:0.4.9') + testAnnotationProcessor('com.alibaba.testable:testable-processor:0.4.9') } ``` diff --git a/docs/zh-cn/doc/release-note.md b/docs/zh-cn/doc/release-note.md index e3b214d..01295ab 100644 --- a/docs/zh-cn/doc/release-note.md +++ b/docs/zh-cn/doc/release-note.md @@ -1,5 +1,9 @@ # Release Note +## 0.4.9 +- 修复发起调用的对象不是局部或成员变量时Mock出错的BUG (issue-40) +- 增加`PrivateAccessor`访问目标有效性检查,提高抗代码重构能力 (issue-21) + ## 0.4.8 - 修复赋值语句中的私有方法调用无法访问的BUG (issue-33) - 支持在包含`SpringRunner`的测试中使用Mock (issue-30) diff --git a/docs/zh-cn/doc/setup.md b/docs/zh-cn/doc/setup.md index 05ecebd..1c8e7f8 100644 --- a/docs/zh-cn/doc/setup.md +++ b/docs/zh-cn/doc/setup.md @@ -15,7 +15,7 @@ ```xml - 0.4.8 + 0.4.9 ``` @@ -62,8 +62,8 @@ ```groovy dependencies { - testImplementation('com.alibaba.testable:testable-all:0.4.8') - testAnnotationProcessor('com.alibaba.testable:testable-processor:0.4.8') + testImplementation('com.alibaba.testable:testable-all:0.4.9') + testAnnotationProcessor('com.alibaba.testable:testable-processor:0.4.9') } ``` diff --git a/testable-agent/pom.xml b/testable-agent/pom.xml index 31f3e45..012b151 100755 --- a/testable-agent/pom.xml +++ b/testable-agent/pom.xml @@ -6,7 +6,7 @@ com.alibaba.testable testable-parent - 0.4.8 + 0.4.9 ../testable-parent testable-agent diff --git a/testable-all/pom.xml b/testable-all/pom.xml index 889e044..f15fd70 100644 --- a/testable-all/pom.xml +++ b/testable-all/pom.xml @@ -6,7 +6,7 @@ com.alibaba.testable testable-parent - 0.4.8 + 0.4.9 ../testable-parent testable-all diff --git a/testable-core/pom.xml b/testable-core/pom.xml index 1a34513..b7fa70d 100644 --- a/testable-core/pom.xml +++ b/testable-core/pom.xml @@ -6,7 +6,7 @@ com.alibaba.testable testable-parent - 0.4.8 + 0.4.9 ../testable-parent testable-core diff --git a/testable-maven-plugin/pom.xml b/testable-maven-plugin/pom.xml index 0e08156..d35c374 100644 --- a/testable-maven-plugin/pom.xml +++ b/testable-maven-plugin/pom.xml @@ -6,7 +6,7 @@ com.alibaba.testable testable-parent - 0.4.8 + 0.4.9 ../testable-parent testable-maven-plugin diff --git a/testable-parent/pom.xml b/testable-parent/pom.xml index 36456bc..1a70108 100644 --- a/testable-parent/pom.xml +++ b/testable-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.alibaba.testable testable-parent - 0.4.8 + 0.4.9 pom testable-parent Unit test enhancement toolkit @@ -42,7 +42,7 @@ 1.6 1.6.8 3.6.0 - 0.4.8 + 0.4.9 diff --git a/testable-processor/pom.xml b/testable-processor/pom.xml index 10e62fd..e494e66 100644 --- a/testable-processor/pom.xml +++ b/testable-processor/pom.xml @@ -6,7 +6,7 @@ com.alibaba.testable testable-parent - 0.4.8 + 0.4.9 ../testable-parent testable-processor