don't inject invalid groovy (with <caret>) in TypeInferenceTest

This commit is contained in:
peter
2015-08-19 13:57:02 +02:00
parent dd3976ced3
commit 5c564c25ef
@@ -36,7 +36,7 @@ abstract class TypeInferenceTestBase extends GroovyResolveTestCase {
myFixture.addClass("package java.math; public class BigDecimal extends Number implements Comparable<BigDecimal> {}");
}
protected void doTest(@Language("Groovy") String text, @Nullable String type) {
protected void doTest(String text, @Nullable String type) {
def file = myFixture.configureByText('_.groovy', text)
def ref = file.findReferenceAt(myFixture.editor.caretModel.offset) as GrReferenceExpression
def actual = ref.type