From 340f13b188caea1bb8a9d3ebde3e46f6ecd462a7 Mon Sep 17 00:00:00 2001 From: Maxim Medvedev Date: Tue, 23 Aug 2011 17:04:20 +0400 Subject: [PATCH] named args for constructors tests --- .../plugins/groovy/lang/GroovyMapAttributeTest.groovy | 8 ++++---- .../groovy/lang/resolve/ResolvePropertyTest.groovy | 5 ----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/GroovyMapAttributeTest.groovy b/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/GroovyMapAttributeTest.groovy index 5504d04a1c1d..c1522103a1e2 100644 --- a/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/GroovyMapAttributeTest.groovy +++ b/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/GroovyMapAttributeTest.groovy @@ -15,9 +15,9 @@ */ package org.jetbrains.plugins.groovy.lang -import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase import com.intellij.codeInsight.completion.CompletionType import com.intellij.codeInsight.lookup.LookupElement +import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase import org.jetbrains.plugins.groovy.codeInspection.assignment.GroovyAssignabilityCheckInspection import org.jetbrains.plugins.groovy.codeInspection.assignment.GroovyUncheckedAssignmentOfMemberOfRawTypeInspection @@ -127,7 +127,7 @@ class Aaa { new Aaa() } } -""", false) +""", true) } public void testHasHashMapConstructor() { @@ -145,7 +145,7 @@ class Aaa { new Aaa() } } -""", false) +""", true) } public void testMapNotFirstConstructor() { @@ -215,7 +215,7 @@ class Aaa { new Aaa() } } -""", false) +""", true) } public void testAlreadyHasNonMapParameter() { diff --git a/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/resolve/ResolvePropertyTest.groovy b/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/resolve/ResolvePropertyTest.groovy index 17f50561240b..7ed529265f72 100644 --- a/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/resolve/ResolvePropertyTest.groovy +++ b/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/resolve/ResolvePropertyTest.groovy @@ -166,11 +166,6 @@ public class ResolvePropertyTest extends GroovyResolveTestCase { assertEquals(CommonClassNames.JAVA_LANG_OBJECT, ((GrMethod) resolved).returnType.canonicalText); } - public void testNotAField() throws Exception { - PsiReference ref = configureByFile("notAField/A.groovy"); - assertNull(ref.resolve()); - } - public void testUndefinedVar2() throws Exception { doUndefinedVarTest("undefinedVar2/A.groovy"); }