mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not suggest to rename also test classes for tests (IDEA-64987)
This commit is contained in:
+7
-1
@@ -31,7 +31,13 @@ import java.util.Collection;
|
||||
*/
|
||||
public class AutomaticTestRenamerFactory implements AutomaticRenamerFactory {
|
||||
public boolean isApplicable(final PsiElement element) {
|
||||
return element instanceof PsiClass;
|
||||
if (element instanceof PsiClass) {
|
||||
final String qualifiedName = ((PsiClass)element).getQualifiedName();
|
||||
if (qualifiedName != null) {
|
||||
return !qualifiedName.endsWith("Test") && !qualifiedName.endsWith("TestCase");
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public String getOptionName() {
|
||||
|
||||
Reference in New Issue
Block a user