mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-01-10 20:30:11 +08:00
always look for outer mock class
This commit is contained in:
parent
82d87f3447
commit
f660ccb88f
@ -115,9 +115,7 @@ public class TestableClassTransformer implements ClassFileTransformer {
|
||||
|
||||
private String foundMockForTestClass(String className) {
|
||||
ClassNode cn = ClassUtil.getClassNode(className);
|
||||
if (cn == null) {
|
||||
return null;
|
||||
}
|
||||
if (cn != null) {
|
||||
String mockClass = lookForMockWithAnnotationAsTestClass(cn);
|
||||
if (mockClass != null) {
|
||||
return mockClass;
|
||||
@ -126,6 +124,7 @@ public class TestableClassTransformer implements ClassFileTransformer {
|
||||
if (mockClass != null) {
|
||||
return mockClass;
|
||||
}
|
||||
}
|
||||
return lookForOuterMockClass(className);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user