mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
IDEA-310500 JavaCodeStyleManager returns more common names for fields and parameters. Fix test
GitOrigin-RevId: ec5e43f4409d9bfce27f913e6dc9a45899f28681
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7bb89d9a09
commit
a2f55e3c5f
@@ -71,7 +71,7 @@ public class CodeStyleManagerTest extends LightJavaCodeInsightFixtureTestCase {
|
||||
JANUARY
|
||||
}
|
||||
}
|
||||
""", "month", VariableKind.PARAMETER);
|
||||
""", "Month", VariableKind.PARAMETER);
|
||||
}
|
||||
|
||||
private void testSuggestedFirstName(@NotNull @Language("JAVA") String text, @NotNull String expected, @NotNull VariableKind parameter) {
|
||||
@@ -81,6 +81,6 @@ public class CodeStyleManagerTest extends LightJavaCodeInsightFixtureTestCase {
|
||||
PsiExpression expression = PsiTreeUtil.getParentOfType(element, PsiExpression.class, false);
|
||||
final JavaCodeStyleManager javaCodeStyleManager = JavaCodeStyleManager.getInstance(getProject());
|
||||
Collection<String> names = javaCodeStyleManager.suggestSemanticNames(expression, parameter);
|
||||
Assertions.assertThat(names.iterator().next()).isEqualToIgnoringCase(expected);
|
||||
Assertions.assertThat(names.iterator().next()).isEqualTo(expected);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user