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;