diff --git a/demo/android-demo/app/build.gradle b/demo/android-demo/app/build.gradle
index b9c89e0..e9a5557 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.6'
+ testImplementation 'com.alibaba.testable:testable-all:0.6.7'
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 507ad7d..74cd219 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.6')
- testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.6')
+ testImplementation('com.alibaba.testable:testable-all:0.6.7')
+ testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.7')
}
tasks.withType(JavaCompile) {
diff --git a/demo/java-demo/pom.xml b/demo/java-demo/pom.xml
index 7b373d8..f9cd12f 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.6
+ 0.6.7
diff --git a/demo/kotlin-demo/build.gradle.kts b/demo/kotlin-demo/build.gradle.kts
index 86ca467..6cb96fc 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.6")
- testAnnotationProcessor("com.alibaba.testable:testable-processor:0.6.6")
+ testImplementation("com.alibaba.testable:testable-all:0.6.7")
+ testAnnotationProcessor("com.alibaba.testable:testable-processor:0.6.7")
}
tasks.withType {
diff --git a/demo/kotlin-demo/pom.xml b/demo/kotlin-demo/pom.xml
index 45be383..911aea9 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.6
+ 0.6.7
diff --git a/demo/spock-demo/build.gradle b/demo/spock-demo/build.gradle
index 2e59d14..01eb28e 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.6')
- testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.6')
+ testImplementation('com.alibaba.testable:testable-all:0.6.7')
+ testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.7')
}
tasks.withType(JavaCompile) {
diff --git a/demo/spock-demo/pom.xml b/demo/spock-demo/pom.xml
index c0e6da8..09c1af1 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.6
+ 0.6.7
diff --git a/docs/en-us/doc/release-note.md b/docs/en-us/doc/release-note.md
index 0f50d6e..97fc662 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.7
+- support empty mock container class which has all mock methods in its parent
+- fix an issue cause mock fail when parameter has array element accessing
+
## 0.6.6
- support global package path mapping for easier mocking code of 3rd packages
- complete mock target checking, improve resistance to code refactoring
diff --git a/docs/en-us/doc/setup.md b/docs/en-us/doc/setup.md
index 487a424..d733687 100644
--- a/docs/en-us/doc/setup.md
+++ b/docs/en-us/doc/setup.md
@@ -17,7 +17,7 @@ It is recommended to add a `property` field that identifies the TestableMock ver
```xml
- 0.6.6
+ 0.6.7
```
@@ -64,8 +64,8 @@ Add dependence of `TestableMock` in `build.gradle` file:
```groovy
dependencies {
- testImplementation('com.alibaba.testable:testable-all:0.6.6')
- testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.6')
+ testImplementation('com.alibaba.testable:testable-all:0.6.7')
+ testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.7')
}
```
diff --git a/docs/zh-cn/doc/release-note.md b/docs/zh-cn/doc/release-note.md
index 7f54522..c6edaff 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.7
+- 支持所有Mock方法都定义在父类中的空Mock容器类(issue-167)
+- 修复一处导致参数包含数组下标读取的调用无法Mock的问题(issue-171)
+
## 0.6.6
- 支持全局参数配置Mock容器的包路径映射,便于Mock三方包内的代码(issue-105)
- 实现Mock功能的防代码重构机制(issue-5)
diff --git a/docs/zh-cn/doc/setup.md b/docs/zh-cn/doc/setup.md
index 5da6546..a5f6bb7 100644
--- a/docs/zh-cn/doc/setup.md
+++ b/docs/zh-cn/doc/setup.md
@@ -17,7 +17,7 @@
```xml
- 0.6.6
+ 0.6.7
```
@@ -64,8 +64,8 @@
```groovy
dependencies {
- testImplementation('com.alibaba.testable:testable-all:0.6.6')
- testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.6')
+ testImplementation('com.alibaba.testable:testable-all:0.6.7')
+ testAnnotationProcessor('com.alibaba.testable:testable-processor:0.6.7')
}
```
diff --git a/docs/zh-cn/doc/use-mock-with.md b/docs/zh-cn/doc/use-mock-with.md
index aa9cbb3..16f8c9a 100644
--- a/docs/zh-cn/doc/use-mock-with.md
+++ b/docs/zh-cn/doc/use-mock-with.md
@@ -89,9 +89,3 @@ public class ServiceTest {
完整代码示例见`java-demo`和`kotlin-demo`示例项目中`OneToMultiSvcTest`测试类的用例。
> 由于测试类无法通过`@MockWith`与多个Mock容器关联,目前这种用法仅支持生效范围为`MockScope.GLOBAL`的Mock方法。
-
-### 4. 使用不包含Mock方法的Mock容器类
-
-为了加快搜索Mock容器类的速度,在扫描过程中,`TestableMock`只会将自身定义有Mock方法(包含`@MockMethod`或`@MockMockConstructor`注解的方法)以及明确被`@MockWith`指向的类识别为有效的Mock容器,而不会去遍历其父类。
-
-假如出于某些极特殊原因要使用无Mock方法的类型作为Mock容器,譬如希望将实际Mock方法均定义在父类,实际使用的子容器仅仅重载父类的某些特定方法。此时即使Mock容器类的位置符合约定,为了能够被识别,依然应该在相应的测试类上增加对Mock容器类的`@MockWith`引用。
diff --git a/testable-agent/pom.xml b/testable-agent/pom.xml
index f81f870..86e6a0c 100755
--- a/testable-agent/pom.xml
+++ b/testable-agent/pom.xml
@@ -6,7 +6,7 @@
com.alibaba.testable
testable-parent
- 0.6.6
+ 0.6.7
../testable-parent
testable-agent
diff --git a/testable-all/pom.xml b/testable-all/pom.xml
index 997885d..12947b3 100644
--- a/testable-all/pom.xml
+++ b/testable-all/pom.xml
@@ -6,7 +6,7 @@
com.alibaba.testable
testable-parent
- 0.6.6
+ 0.6.7
../testable-parent
testable-all
diff --git a/testable-core/pom.xml b/testable-core/pom.xml
index 2acfd87..513e4b6 100644
--- a/testable-core/pom.xml
+++ b/testable-core/pom.xml
@@ -6,7 +6,7 @@
com.alibaba.testable
testable-parent
- 0.6.6
+ 0.6.7
../testable-parent
testable-core
diff --git a/testable-maven-plugin/pom.xml b/testable-maven-plugin/pom.xml
index 413cbc2..c3ff8fc 100644
--- a/testable-maven-plugin/pom.xml
+++ b/testable-maven-plugin/pom.xml
@@ -6,7 +6,7 @@
com.alibaba.testable
testable-parent
- 0.6.6
+ 0.6.7
../testable-parent
testable-maven-plugin
diff --git a/testable-parent/pom.xml b/testable-parent/pom.xml
index d5ff9aa..27c9060 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.6
+ 0.6.7
pom
testable-parent
Unit test enhancement toolkit
@@ -42,7 +42,7 @@
1.6
1.6.8
3.6.0
- 0.6.6
+ 0.6.7
diff --git a/testable-processor/pom.xml b/testable-processor/pom.xml
index d73f4ba..02ae23c 100644
--- a/testable-processor/pom.xml
+++ b/testable-processor/pom.xml
@@ -6,7 +6,7 @@
com.alibaba.testable
testable-parent
- 0.6.6
+ 0.6.7
../testable-parent
testable-processor