mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-01-10 04:10:30 +08:00
version tips
This commit is contained in:
parent
e33c208b8d
commit
0b9a9c7ac6
@ -34,6 +34,8 @@
|
||||
</plugin>
|
||||
```
|
||||
|
||||
> PS:其中`${testable.version}`需替换为具体版本号,当前最新版本为`0.2.1-SNAPSHOT`
|
||||
|
||||
## 使用Testable
|
||||
|
||||
`Testable`目前能为测试类提供两项增强能力:__直接访问被测类的私有成员__ 和 __极速Mock被测方法中的调用__
|
||||
|
@ -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/");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user