From bccf3f367b65992323562e9d04257ff5347f9417 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Fri, 9 Sep 2011 20:13:53 +0400 Subject: [PATCH] Parser tests fixed --- idea/tests/org/jetbrains/jet/parsing/JetParsingTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/idea/tests/org/jetbrains/jet/parsing/JetParsingTest.java b/idea/tests/org/jetbrains/jet/parsing/JetParsingTest.java index d74d147bf1e..6e1b8238abf 100644 --- a/idea/tests/org/jetbrains/jet/parsing/JetParsingTest.java +++ b/idea/tests/org/jetbrains/jet/parsing/JetParsingTest.java @@ -69,7 +69,8 @@ public class JetParsingTest extends ParsingTestCase { private void checkPsiGetters(JetElement elem) throws Throwable { Method[] methods = elem.getClass().getDeclaredMethods(); for (Method method : methods) { - if (!method.getName().startsWith("get") && !method.getName().startsWith("find")) continue; + String methodName = method.getName(); + if (!methodName.startsWith("get") && !methodName.startsWith("find") || methodName.equals("getReference") || methodName.equals("getReferences")) continue; if (method.getParameterTypes().length > 0) continue; Class declaringClass = method.getDeclaringClass(); if (!declaringClass.getName().startsWith("org.jetbrains.jet")) continue; @@ -79,7 +80,7 @@ public class JetParsingTest extends ParsingTestCase { for (Annotation annotation : method.getDeclaredAnnotations()) { if (annotation instanceof JetElement.IfNotParsed) { assertNotNull( - "Incomplete operation in parsed OK test, method " + method.getName() + + "Incomplete operation in parsed OK test, method " + methodName + " in " + declaringClass.getSimpleName() + " returns null. Element text: \n" + elem.getText(), PsiTreeUtil.findChildOfType(elem, PsiErrorElement.class)); }