mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
named args for constructors tests
This commit is contained in:
@@ -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() {
|
||||
|
||||
-5
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user