mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
fix testdata
This commit is contained in:
+4
-4
@@ -1,12 +1,12 @@
|
||||
public class Derr {
|
||||
|
||||
public static final Long LONGONE = new Long(1);
|
||||
public static final Long VALUEONE = new Long(1);
|
||||
|
||||
public static void main(String[] args) {
|
||||
long value;
|
||||
|
||||
value = LONGONE;
|
||||
value = LONGONE;
|
||||
value = LONGONE;
|
||||
value = VALUEONE;
|
||||
value = VALUEONE;
|
||||
value = VALUEONE;
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -51,7 +51,7 @@ public class NameSuggestionsByExpressionTest extends LightCodeInsightFixtureTest
|
||||
PsiFile file = myFixture.configureByText("A.java", "class A {{String bar = \"<caret>\";}}");
|
||||
PsiExpression expression = PsiTreeUtil.getParentOfType(file.findElementAt(getEditor().getCaretModel().getOffset()), PsiExpression.class);
|
||||
SuggestedNameInfo nameInfo = JavaCodeStyleManager.getInstance(getProject())
|
||||
.suggestVariableName(VariableKind.LOCAL_VARIABLE, null, expression, null);
|
||||
.suggestVariableName(VariableKind.PARAMETER, null, expression, null);
|
||||
Assert.assertArrayEquals("Suggested: " + Arrays.toString(nameInfo.names),
|
||||
new String[] {"bar", "s"},
|
||||
nameInfo.names);
|
||||
|
||||
Reference in New Issue
Block a user