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:
Nikolay Krasko
2014-10-23 21:59:00 +04:00
parent 304c826b47
commit 29d73b9302
@@ -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;