Don't activate getPresentation() method from parser tests
Calling this method from frontend tests caches empty presenters in KeyedExtensionCollector that makes plugins tests fail.
This commit is contained in:
@@ -56,10 +56,17 @@ public abstract class AbstractJetParsingTest extends ParsingTestCase {
|
||||
Method[] methods = elem.getClass().getDeclaredMethods();
|
||||
for (Method method : methods) {
|
||||
String methodName = method.getName();
|
||||
if (!methodName.startsWith("get") && !methodName.startsWith("find") || methodName.equals("getReference") ||
|
||||
methodName.equals("getReferences") || methodName.equals("getUseScope")) continue;
|
||||
if (!methodName.startsWith("get") && !methodName.startsWith("find") ||
|
||||
methodName.equals("getReference") ||
|
||||
methodName.equals("getReferences") ||
|
||||
methodName.equals("getUseScope") ||
|
||||
methodName.equals("getPresentation")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!Modifier.isPublic(method.getModifiers())) continue;
|
||||
if (method.getParameterTypes().length > 0) continue;
|
||||
|
||||
Class<?> declaringClass = method.getDeclaringClass();
|
||||
if (!declaringClass.getName().startsWith("org.jetbrains.jet")) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user