diff --git a/demo/android-demo/app/build.gradle b/demo/android-demo/app/build.gradle index 8d77fe1..ae7ed2d 100644 --- a/demo/android-demo/app/build.gradle +++ b/demo/android-demo/app/build.gradle @@ -49,7 +49,7 @@ dependencies { testImplementation 'androidx.test:runner:1.4.0-alpha05' testImplementation 'junit:junit:4.+' testImplementation 'org.robolectric:robolectric:4.5.1' - testImplementation 'com.alibaba.testable:testable-all:0.6.8' + testImplementation 'com.alibaba.testable:testable-all:0.6.9' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' } \ No newline at end of file diff --git a/demo/java-demo/build.gradle b/demo/java-demo/build.gradle index 960eb5f..9295202 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.6.8') - testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.8') + testImplementation('com.alibaba.testable:testable-all:0.6.9') + testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.9') } tasks.withType(JavaCompile) { diff --git a/demo/java-demo/pom.xml b/demo/java-demo/pom.xml index adfa1a1..8114f79 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.6.8 + 0.6.9 diff --git a/demo/kotlin-demo/build.gradle.kts b/demo/kotlin-demo/build.gradle.kts index 04990c9..6f3d455 100644 --- a/demo/kotlin-demo/build.gradle.kts +++ b/demo/kotlin-demo/build.gradle.kts @@ -17,8 +17,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.6.8") - testAnnotationProcessor("com.alibaba.testable:testable-processor:0.6.8") + testImplementation("com.alibaba.testable:testable-all:0.6.9") + testAnnotationProcessor("com.alibaba.testable:testable-processor:0.6.9") } tasks.withType { diff --git a/demo/kotlin-demo/pom.xml b/demo/kotlin-demo/pom.xml index f909564..48deb5c 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.6.8 + 0.6.9 diff --git a/demo/spock-demo/build.gradle b/demo/spock-demo/build.gradle index 5b26170..a2cc649 100644 --- a/demo/spock-demo/build.gradle +++ b/demo/spock-demo/build.gradle @@ -14,8 +14,8 @@ repositories { dependencies { testImplementation 'org.codehaus.groovy:groovy-all:3.0.7' testImplementation 'org.spockframework:spock-core:2.0-M5-groovy-3.0' - testImplementation('com.alibaba.testable:testable-all:0.6.8') - testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.8') + testImplementation('com.alibaba.testable:testable-all:0.6.9') + testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.9') } tasks.withType(JavaCompile) { diff --git a/demo/spock-demo/pom.xml b/demo/spock-demo/pom.xml index e3cbb8a..de3426e 100644 --- a/demo/spock-demo/pom.xml +++ b/demo/spock-demo/pom.xml @@ -12,7 +12,7 @@ 1.8 1.8 1.8 - 0.6.8 + 0.6.9 diff --git a/docs/en-us/doc/release-note.md b/docs/en-us/doc/release-note.md index a7949e9..de5d41a 100644 --- a/docs/en-us/doc/release-note.md +++ b/docs/en-us/doc/release-note.md @@ -1,5 +1,9 @@ # Release Note +## 0.6.9 +- support mock invocation in lambda method or via function reference +- fix a `NullPointerException` issue when `PrivateAccessor.invoke()` has `null` parameter + ## 0.6.8 - support `@DumpTo` annotation to dump bytecode of any transformed class - `PrivateAccessor.setStatic()` method now able to update static final members diff --git a/docs/en-us/doc/setup.md b/docs/en-us/doc/setup.md index 71acd72..78396be 100644 --- a/docs/en-us/doc/setup.md +++ b/docs/en-us/doc/setup.md @@ -16,7 +16,7 @@ It is recommended to add a `property` field that identifies the TestableMock ver ```xml - 0.6.8 + 0.6.9 ``` @@ -63,8 +63,8 @@ Add dependence of `TestableMock` in `build.gradle` file: ```groovy dependencies { - testImplementation('com.alibaba.testable:testable-all:0.6.8') - testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.8') + testImplementation('com.alibaba.testable:testable-all:0.6.9') + testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.9') } ``` diff --git a/docs/zh-cn/doc/release-note.md b/docs/zh-cn/doc/release-note.md index 97bf288..28473ac 100644 --- a/docs/zh-cn/doc/release-note.md +++ b/docs/zh-cn/doc/release-note.md @@ -1,5 +1,9 @@ # Release Note +## 0.6.9 +- 支持Lambda方法中的调用和方法引用(issue-36) +- 修复`PrivateAccessor.invoke()`调用参数为`null`时的空指针异常(issue-226) + ## 0.6.8 - 支持使用`@DumpTo`注解导出任意类处理后的字节码 - 支持使用`PrivateAccessor.setStatic()`方法修改静态常量成员 diff --git a/docs/zh-cn/doc/setup.md b/docs/zh-cn/doc/setup.md index 761fa9a..ed87366 100644 --- a/docs/zh-cn/doc/setup.md +++ b/docs/zh-cn/doc/setup.md @@ -16,7 +16,7 @@ ```xml - 0.6.8 + 0.6.9 ``` @@ -63,8 +63,8 @@ ```groovy dependencies { - testImplementation('com.alibaba.testable:testable-all:0.6.8') - testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.8') + testImplementation('com.alibaba.testable:testable-all:0.6.9') + testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.9') } ``` diff --git a/testable-agent/pom.xml b/testable-agent/pom.xml index 718e5ad..1f710b5 100755 --- a/testable-agent/pom.xml +++ b/testable-agent/pom.xml @@ -6,7 +6,7 @@ com.alibaba.testable testable-parent - 0.6.8 + 0.6.9 ../testable-parent testable-agent diff --git a/testable-all/pom.xml b/testable-all/pom.xml index aeeeae7..be367fc 100644 --- a/testable-all/pom.xml +++ b/testable-all/pom.xml @@ -6,7 +6,7 @@ com.alibaba.testable testable-parent - 0.6.8 + 0.6.9 ../testable-parent testable-all diff --git a/testable-core/pom.xml b/testable-core/pom.xml index 2709493..2ff778a 100644 --- a/testable-core/pom.xml +++ b/testable-core/pom.xml @@ -6,7 +6,7 @@ com.alibaba.testable testable-parent - 0.6.8 + 0.6.9 ../testable-parent testable-core diff --git a/testable-maven-plugin/pom.xml b/testable-maven-plugin/pom.xml index d694c17..a0508d0 100644 --- a/testable-maven-plugin/pom.xml +++ b/testable-maven-plugin/pom.xml @@ -6,7 +6,7 @@ com.alibaba.testable testable-parent - 0.6.8 + 0.6.9 ../testable-parent testable-maven-plugin diff --git a/testable-parent/pom.xml b/testable-parent/pom.xml index 84dcb20..4592353 100644 --- a/testable-parent/pom.xml +++ b/testable-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.alibaba.testable testable-parent - 0.6.8 + 0.6.9 pom testable-parent Unit test enhancement toolkit @@ -42,7 +42,7 @@ 1.6 1.6.8 3.6.0 - 0.6.8 + 0.6.9 diff --git a/testable-processor/pom.xml b/testable-processor/pom.xml index 1e8aaa5..e229da8 100644 --- a/testable-processor/pom.xml +++ b/testable-processor/pom.xml @@ -6,7 +6,7 @@ com.alibaba.testable testable-parent - 0.6.8 + 0.6.9 ../testable-parent testable-processor