named args for constructors tests

This commit is contained in:
Maxim Medvedev
2011-08-23 17:15:30 +04:00
parent 5ec3c0c544
commit 340f13b188
2 changed files with 4 additions and 9 deletions
@@ -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(<caret>)
}
}
""", false)
""", true)
}
public void testHasHashMapConstructor() {
@@ -145,7 +145,7 @@ class Aaa {
new Aaa(<caret>)
}
}
""", false)
""", true)
}
public void testMapNotFirstConstructor() {
@@ -215,7 +215,7 @@ class Aaa {
new Aaa(<caret>)
}
}
""", false)
""", true)
}
public void testAlreadyHasNonMapParameter() {
@@ -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");
}