mirror of
https://github.com/alibaba/testable-mock.git
synced 2026-08-19 09:43:29 +08:00
feat: should skip mockito generated class
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user