Remove state from JetChangeSignatureTests
This commit is contained in:
+17
-4
@@ -1300,6 +1300,23 @@ public class JetChangeSignatureTest extends KotlinCodeInsightTestCase {
|
|||||||
doJavaTest(new JavaRefactoringProvider());
|
doJavaTest(new JavaRefactoringProvider());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private List<Editor> editors = null;
|
||||||
|
|
||||||
|
private static final String[] EXTENSIONS = {".kt", ".java"};
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void setUp() throws Exception {
|
||||||
|
super.setUp();
|
||||||
|
editors = new ArrayList<Editor>();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void tearDown() throws Exception {
|
||||||
|
super.tearDown();
|
||||||
|
editors.clear();
|
||||||
|
editors = null;
|
||||||
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private LinkedHashSet<PsiMethod> findCallers(@NotNull PsiMethod method) {
|
private LinkedHashSet<PsiMethod> findCallers(@NotNull PsiMethod method) {
|
||||||
KotlinMethodNode rootNode =
|
KotlinMethodNode rootNode =
|
||||||
@@ -1326,10 +1343,6 @@ public class JetChangeSignatureTest extends KotlinCodeInsightTestCase {
|
|||||||
return new File(PluginTestCaseBase.getTestDataPathBase(), "/refactoring/changeSignature").getPath() + File.separator;
|
return new File(PluginTestCaseBase.getTestDataPathBase(), "/refactoring/changeSignature").getPath() + File.separator;
|
||||||
}
|
}
|
||||||
|
|
||||||
private final List<Editor> editors = new ArrayList<Editor>();
|
|
||||||
|
|
||||||
private static final String[] EXTENSIONS = {".kt", ".java"};
|
|
||||||
|
|
||||||
private void configureFiles() throws Exception {
|
private void configureFiles() throws Exception {
|
||||||
editors.clear();
|
editors.clear();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user