mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-03-26 12:05:04 +08:00
feat: should skip mockito generated class
This commit is contained in:
parent
4ed1323a62
commit
0f64d52718
@ -94,6 +94,10 @@ public class OmniClassHandler extends BaseClassHandler {
|
||||
if ("org/elasticsearch/plugins/Plugin".equals(cn.superName)) {
|
||||
return true;
|
||||
}
|
||||
// should skip mockito generated class
|
||||
if (cn.name.contains("$MockitoMock$")) {
|
||||
return true;
|
||||
}
|
||||
// junit require test class contains only one constructor
|
||||
for (MethodNode mn : cn.methods) {
|
||||
if (mn.visibleAnnotations == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user