version tips

This commit is contained in:
金戟 2020-10-30 17:58:27 +08:00
parent e33c208b8d
commit 0b9a9c7ac6
2 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,8 @@
</plugin>
```
> PS其中`${testable.version}`需替换为具体版本号,当前最新版本为`0.2.1-SNAPSHOT`
## 使用Testable
`Testable`目前能为测试类提供两项增强能力__直接访问被测类的私有成员__ 和 __极速Mock被测方法中的调用__

View File

@ -64,6 +64,7 @@ public class TestableClassTransformer implements ClassFileTransformer {
}
private boolean isSystemClass(ClassLoader loader, String className) {
// className can be null for Java 8 lambdas
return !(loader instanceof URLClassLoader) || null == className || className.startsWith("jdk/");
}