From 29d73b9302a7b78b5ccae42a601c30c60f4e0e5f Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Thu, 23 Oct 2014 21:59:00 +0400 Subject: [PATCH] Don't activate getPresentation() method from parser tests Calling this method from frontend tests caches empty presenters in KeyedExtensionCollector that makes plugins tests fail. --- .../jetbrains/jet/parsing/AbstractJetParsingTest.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/compiler/tests/org/jetbrains/jet/parsing/AbstractJetParsingTest.java b/compiler/tests/org/jetbrains/jet/parsing/AbstractJetParsingTest.java index 66992a5a585..a1ada752f5e 100644 --- a/compiler/tests/org/jetbrains/jet/parsing/AbstractJetParsingTest.java +++ b/compiler/tests/org/jetbrains/jet/parsing/AbstractJetParsingTest.java @@ -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;