From 89e64604468deb925b88f85c5b918de599f3c413 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Mon, 16 May 2016 14:58:21 +0300 Subject: [PATCH] removed redundant methods in tests --- .../daemon/AdvHighlightingJdk7Test.java | 5 ----- .../quickFix/CastMethodParameters15Test.java | 5 ----- .../lang/java/parser/JavaParsingTestCase.java | 5 ----- .../JavaFormatterPerformanceTest.java | 5 ----- .../MockIntroduceVariableHandler.java | 5 ----- .../refactoring/TypeMigrationTestBase.java | 11 ---------- .../test/ExternalSystemImportingTestCase.java | 5 ----- .../LongLineInspectionTest.java | 5 ----- .../ide/util/treeView/TreeUiTest.java | 20 ------------------- .../editor/impl/DocumentMarkupModelTest.java | 5 ----- .../richcopy/SyntaxInfoConstructionTest.java | 5 ----- .../intellij/xdebugger/XDebuggerTestCase.java | 6 ------ .../github/GithubCreateGistContentTest.java | 5 ----- .../test/history/HgLogHistoryTest.java | 5 ----- .../merge/HgRevertUncommittedMergeTest.java | 4 ---- .../hg4idea/test/HgAnnotateCommandTest.java | 6 ------ .../maven/compiler/ResourceFilteringTest.java | 5 ----- .../maven/execution/MavenExecutionTest.java | 4 ---- .../importing/WorkingWithOpenProjectTest.java | 5 ----- .../AlphaUnsortedInspectionTest.java | 4 ---- .../lang/properties/ResourceBundleTest.java | 5 ----- .../properties/xml/XmlPropertiesTest.java | 5 ----- .../idea/svn/SvnCommittedViewTest.java | 5 ----- .../idea/svn16/SvnCommittedViewTest.java | 6 ------ .../com/intellij/tasks/TestRepository.java | 4 ---- .../intellij/tasks/jira/jql/ParsingTest.java | 5 ----- .../YAMLMappingModificationTest.java | 8 +------- .../env/python/PyDynamicTypesTest.java | 4 ---- .../env/python/PythonDebuggerTest.java | 3 --- .../env/python/debug/PyDebuggerTask.java | 4 ---- ...ntToLoopOrWithParameterInspectionTest.java | 5 ----- .../SpellcheckerInspectionTestCase.java | 5 ----- .../SpellCheckingEditorCustomizationTest.java | 5 ----- .../util/xml/stubs/DomStubBuilderTest.java | 5 ----- .../completion/XmlSyncTagTest.java | 10 ---------- .../daemon/quickFix/RealFetchTest.java | 5 ----- .../intellij/xml/XMLCatalogManagerTest.java | 5 ----- 37 files changed, 1 insertion(+), 208 deletions(-) diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java index 770b90eef8d5..a69e12f07e24 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java @@ -32,11 +32,6 @@ import org.jetbrains.annotations.NotNull; public class AdvHighlightingJdk7Test extends DaemonAnalyzerTestCase { @NonNls private static final String BASE_PATH = "/codeInsight/daemonCodeAnalyzer/advHighlighting7/"; - @Override - protected Sdk getTestProjectJdk() { - return IdeaTestUtil.getMockJdk17(); - } - @Override public void setUp() throws Exception { super.setUp(); diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/quickFix/CastMethodParameters15Test.java b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/quickFix/CastMethodParameters15Test.java index a69da298c98a..a100ca6cbcea 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/quickFix/CastMethodParameters15Test.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/quickFix/CastMethodParameters15Test.java @@ -17,11 +17,6 @@ package com.intellij.codeInsight.daemon.quickFix; public class CastMethodParameters15Test extends LightQuickFixParameterizedTestCase { - @Override - protected void setUp() throws Exception { - super.setUp(); - } - public void testPrimitiveWrappers() throws Exception { doSingleTest(getTestName(false) + ".java"); } diff --git a/java/java-tests/testSrc/com/intellij/lang/java/parser/JavaParsingTestCase.java b/java/java-tests/testSrc/com/intellij/lang/java/parser/JavaParsingTestCase.java index 9bf669dc6350..2d3e2d73ed5e 100644 --- a/java/java-tests/testSrc/com/intellij/lang/java/parser/JavaParsingTestCase.java +++ b/java/java-tests/testSrc/com/intellij/lang/java/parser/JavaParsingTestCase.java @@ -63,11 +63,6 @@ public abstract class JavaParsingTestCase extends ParsingTestCase { return file; } - @Override - protected void tearDown() throws Exception { - super.tearDown(); - } - protected interface TestParser { void parse(PsiBuilder builder); } diff --git a/java/java-tests/testSrc/com/intellij/psi/formatter/performance/JavaFormatterPerformanceTest.java b/java/java-tests/testSrc/com/intellij/psi/formatter/performance/JavaFormatterPerformanceTest.java index f70d8e24ca03..f2f381aa8662 100644 --- a/java/java-tests/testSrc/com/intellij/psi/formatter/performance/JavaFormatterPerformanceTest.java +++ b/java/java-tests/testSrc/com/intellij/psi/formatter/performance/JavaFormatterPerformanceTest.java @@ -125,9 +125,4 @@ public class JavaFormatterPerformanceTest extends JavaFormatterTestCase { protected boolean doCheckDocumentUpdate() { return true; } - - @Override - protected String getFileExtension() { - return "java"; - } } diff --git a/java/java-tests/testSrc/com/intellij/refactoring/MockIntroduceVariableHandler.java b/java/java-tests/testSrc/com/intellij/refactoring/MockIntroduceVariableHandler.java index 9de7ab87c6d6..cc8680399198 100644 --- a/java/java-tests/testSrc/com/intellij/refactoring/MockIntroduceVariableHandler.java +++ b/java/java-tests/testSrc/com/intellij/refactoring/MockIntroduceVariableHandler.java @@ -115,11 +115,6 @@ class MockIntroduceVariableHandler extends IntroduceVariableBase { throw new RuntimeException("Error message:" + message); } - @Override - protected boolean reportConflicts(final MultiMap conflicts, final Project project, IntroduceVariableSettings dialog) { - return false; - } - private PsiType findType(final PsiType[] candidates, PsiType defaultType) { for (PsiType candidate : candidates) { if (candidate.equalsToText(myExpectedTypeCanonicalName)) return candidate; diff --git a/java/typeMigration/test/com/intellij/refactoring/TypeMigrationTestBase.java b/java/typeMigration/test/com/intellij/refactoring/TypeMigrationTestBase.java index 889511a5670e..b3e586f36434 100644 --- a/java/typeMigration/test/com/intellij/refactoring/TypeMigrationTestBase.java +++ b/java/typeMigration/test/com/intellij/refactoring/TypeMigrationTestBase.java @@ -220,16 +220,5 @@ public abstract class TypeMigrationTestBase extends MultiFileTestCase { public TestTypeMigrationProcessor(final Project project, final PsiElement root, final PsiType migrationType, final TypeMigrationRules rules) { super(project, new PsiElement[] {root}, Functions.constant(migrationType), rules); } - - @NotNull - @Override - public UsageInfo[] findUsages() { - return super.findUsages(); - } - - @Override - public void performRefactoring(@NotNull final UsageInfo[] usages) { - super.performRefactoring(usages); - } } } \ No newline at end of file diff --git a/platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/test/ExternalSystemImportingTestCase.java b/platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/test/ExternalSystemImportingTestCase.java index a857af2aa4bd..2c4b5f540356 100644 --- a/platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/test/ExternalSystemImportingTestCase.java +++ b/platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/test/ExternalSystemImportingTestCase.java @@ -74,11 +74,6 @@ import java.util.concurrent.atomic.AtomicInteger; */ public abstract class ExternalSystemImportingTestCase extends ExternalSystemTestCase { - @Override - protected void setUpInWriteAction() throws Exception { - super.setUpInWriteAction(); - } - protected void assertModules(String... expectedNames) { Module[] actual = ModuleManager.getInstance(myProject).getModules(); List actualNames = new ArrayList(); diff --git a/platform/lang-impl/testSources/com/intellij/codeInspection/LongLineInspectionTest.java b/platform/lang-impl/testSources/com/intellij/codeInspection/LongLineInspectionTest.java index a76eafa74c83..53200fc70ac7 100644 --- a/platform/lang-impl/testSources/com/intellij/codeInspection/LongLineInspectionTest.java +++ b/platform/lang-impl/testSources/com/intellij/codeInspection/LongLineInspectionTest.java @@ -48,9 +48,4 @@ public class LongLineInspectionTest extends LightPlatformCodeInsightFixtureTestC protected String getTestDataPath() { return PlatformTestUtil.getCommunityPath().replace(File.separatorChar, '/') + "/platform/lang-impl/testData/codeInspection/longLine/"; } - - @Override - protected boolean isWriteActionRequired() { - return false; - } } diff --git a/platform/platform-tests/testSrc/com/intellij/ide/util/treeView/TreeUiTest.java b/platform/platform-tests/testSrc/com/intellij/ide/util/treeView/TreeUiTest.java index baf38451130d..28754501eb10 100644 --- a/platform/platform-tests/testSrc/com/intellij/ide/util/treeView/TreeUiTest.java +++ b/platform/platform-tests/testSrc/com/intellij/ide/util/treeView/TreeUiTest.java @@ -2678,11 +2678,6 @@ public class TreeUiTest extends AbstractTreeBuilderTest { super(false, true); } - @Override - public void testQueryStructure() throws Exception { - super.testQueryStructure(); - } - @Override protected int getNodeDescriptorUpdateDelay() { return 30; @@ -2705,21 +2700,6 @@ public class TreeUiTest extends AbstractTreeBuilderTest { super(false, true); } - @Override - public void testSelectWhileUpdating() throws Exception { - super.testSelectWhileUpdating(); - } - - @Override - protected int getNodeDescriptorUpdateDelay() { - return 0; - } - - @Override - protected int getChildrenLoadingDelay() { - return 0; - } - @Override public void testNoInfiniteSmartExpand() throws Exception { // todo; diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/DocumentMarkupModelTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/DocumentMarkupModelTest.java index 1eea3835d593..02567985935b 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/DocumentMarkupModelTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/DocumentMarkupModelTest.java @@ -60,11 +60,6 @@ public class DocumentMarkupModelTest extends LightPlatformCodeInsightFixtureTest assertNull(attributes.getForegroundColor()); } - @Override - protected boolean isWriteActionRequired() { - return false; - } - public static class TestAnnotator implements Annotator { @Override public void annotate(@NotNull PsiElement element, @NotNull AnnotationHolder holder) { diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/editor/richcopy/SyntaxInfoConstructionTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/editor/richcopy/SyntaxInfoConstructionTest.java index 95803eb58ed5..5a8f646e0f87 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/editor/richcopy/SyntaxInfoConstructionTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/editor/richcopy/SyntaxInfoConstructionTest.java @@ -392,9 +392,4 @@ public class SyntaxInfoConstructionTest extends LightPlatformCodeInsightFixtureT private void verifySyntaxInfo(String info) { assertEquals(info, getSyntaxInfo()); } - - @Override - protected boolean isWriteActionRequired() { - return false; - } } diff --git a/platform/xdebugger-impl/testSrc/com/intellij/xdebugger/XDebuggerTestCase.java b/platform/xdebugger-impl/testSrc/com/intellij/xdebugger/XDebuggerTestCase.java index 57a84d3bcc4a..822dd9d40ebf 100644 --- a/platform/xdebugger-impl/testSrc/com/intellij/xdebugger/XDebuggerTestCase.java +++ b/platform/xdebugger-impl/testSrc/com/intellij/xdebugger/XDebuggerTestCase.java @@ -18,7 +18,6 @@ package com.intellij.xdebugger; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.extensions.ExtensionPoint; import com.intellij.openapi.extensions.Extensions; -import com.intellij.openapi.project.Project; import com.intellij.openapi.util.Computable; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.testFramework.PlatformTestCase; @@ -91,11 +90,6 @@ public abstract class XDebuggerTestCase extends PlatformTestCase { super("testLine", "239"); } - @Override - public boolean canPutAt(@NotNull final VirtualFile file, final int line, @NotNull Project project) { - return false; - } - @Override public MyBreakpointProperties createBreakpointProperties(@NotNull final VirtualFile file, final int line) { return null; diff --git a/plugins/github/test/org/jetbrains/plugins/github/GithubCreateGistContentTest.java b/plugins/github/test/org/jetbrains/plugins/github/GithubCreateGistContentTest.java index 570235881fd5..4fc79bc26283 100644 --- a/plugins/github/test/org/jetbrains/plugins/github/GithubCreateGistContentTest.java +++ b/plugins/github/test/org/jetbrains/plugins/github/GithubCreateGistContentTest.java @@ -32,11 +32,6 @@ import static org.jetbrains.plugins.github.api.GithubGist.FileContent; public class GithubCreateGistContentTest extends GithubCreateGistContentTestBase { protected Editor myEditor; - @Override - protected void beforeTest() throws Exception { - createProjectFiles(); - } - @Override protected void afterTest() throws Exception { if (myEditor != null) { diff --git a/plugins/hg4idea/testSrc/hg4idea/test/history/HgLogHistoryTest.java b/plugins/hg4idea/testSrc/hg4idea/test/history/HgLogHistoryTest.java index b890acfac44c..45148efa1072 100644 --- a/plugins/hg4idea/testSrc/hg4idea/test/history/HgLogHistoryTest.java +++ b/plugins/hg4idea/testSrc/hg4idea/test/history/HgLogHistoryTest.java @@ -32,11 +32,6 @@ import static hg4idea.test.HgExecutor.hg; public class HgLogHistoryTest extends HgPlatformTest { - @Override - public void setUp() throws Exception { - super.setUp(); - } - public void testContainedInBranchesInLogInfos() throws VcsException { createBookmarksAndBranches(myRepository); Hash testHashForFirstCommit = HashImpl.build("0"); diff --git a/plugins/hg4idea/testSrc/hg4idea/test/merge/HgRevertUncommittedMergeTest.java b/plugins/hg4idea/testSrc/hg4idea/test/merge/HgRevertUncommittedMergeTest.java index fb84e159962a..3e7677ace4e2 100644 --- a/plugins/hg4idea/testSrc/hg4idea/test/merge/HgRevertUncommittedMergeTest.java +++ b/plugins/hg4idea/testSrc/hg4idea/test/merge/HgRevertUncommittedMergeTest.java @@ -30,10 +30,6 @@ import static hg4idea.test.HgExecutor.hg; import static hg4idea.test.HgExecutor.hgMergeWith; public class HgRevertUncommittedMergeTest extends HgPlatformTest { - @Override - public void setUp() throws Exception { - super.setUp(); - } public void testRevertAfterMerge() throws VcsException { cd(myRepository); diff --git a/plugins/hg4idea/testSrc/org/zmlx/hg4idea/test/HgAnnotateCommandTest.java b/plugins/hg4idea/testSrc/org/zmlx/hg4idea/test/HgAnnotateCommandTest.java index 2a0048d805fb..d40d57c60192 100644 --- a/plugins/hg4idea/testSrc/org/zmlx/hg4idea/test/HgAnnotateCommandTest.java +++ b/plugins/hg4idea/testSrc/org/zmlx/hg4idea/test/HgAnnotateCommandTest.java @@ -52,12 +52,6 @@ public class HgAnnotateCommandTest extends HgSingleUserTest { private File myOutputsDir; private List myAnnotations; - @BeforeMethod - @Override - protected void setUp(Method testMethod) throws Exception { - super.setUp(testMethod); - } - @BeforeClass private void loadEthalonAnnotations() throws IOException { myPluginRoot = new File(PluginPathManager.getPluginHomePath(HgVcs.VCS_NAME)); diff --git a/plugins/maven/src/test/java/org/jetbrains/idea/maven/compiler/ResourceFilteringTest.java b/plugins/maven/src/test/java/org/jetbrains/idea/maven/compiler/ResourceFilteringTest.java index d3689cfd0db2..9694d1d83f48 100644 --- a/plugins/maven/src/test/java/org/jetbrains/idea/maven/compiler/ResourceFilteringTest.java +++ b/plugins/maven/src/test/java/org/jetbrains/idea/maven/compiler/ResourceFilteringTest.java @@ -29,11 +29,6 @@ import java.util.Arrays; public class ResourceFilteringTest extends MavenCompilingTestCase { - @Override - protected boolean runInWriteAction() { - return false; - } - public void testBasic() throws Exception { createProjectSubFile("resources/file.properties", "value=${project.version}\n" + "value2=@project.version@\n" + diff --git a/plugins/maven/src/test/java/org/jetbrains/idea/maven/execution/MavenExecutionTest.java b/plugins/maven/src/test/java/org/jetbrains/idea/maven/execution/MavenExecutionTest.java index bf7bbbb274f6..70f3ce23e1f0 100644 --- a/plugins/maven/src/test/java/org/jetbrains/idea/maven/execution/MavenExecutionTest.java +++ b/plugins/maven/src/test/java/org/jetbrains/idea/maven/execution/MavenExecutionTest.java @@ -36,10 +36,6 @@ import java.util.Collections; @SuppressWarnings({"ConstantConditions"}) public class MavenExecutionTest extends MavenImportingTestCase { - @Override - protected boolean runInWriteAction() { - return false; - } @Override protected boolean runInDispatchThread() { diff --git a/plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/WorkingWithOpenProjectTest.java b/plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/WorkingWithOpenProjectTest.java index e7ac9ca93812..77f7746e4808 100644 --- a/plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/WorkingWithOpenProjectTest.java +++ b/plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/WorkingWithOpenProjectTest.java @@ -35,11 +35,6 @@ public class WorkingWithOpenProjectTest extends MavenImportingTestCase { "1"); } - @Override - protected void tearDown() throws Exception { - super.tearDown(); - } - public void testShouldNotFailOnNewEmptyPomCreation() throws Exception { createModulePom("module", ""); // should not throw an exception } diff --git a/plugins/properties/testSrc/com/intellij/lang/properties/AlphaUnsortedInspectionTest.java b/plugins/properties/testSrc/com/intellij/lang/properties/AlphaUnsortedInspectionTest.java index 1d9248b8b4d5..08b3fdb9983e 100644 --- a/plugins/properties/testSrc/com/intellij/lang/properties/AlphaUnsortedInspectionTest.java +++ b/plugins/properties/testSrc/com/intellij/lang/properties/AlphaUnsortedInspectionTest.java @@ -99,8 +99,4 @@ public class AlphaUnsortedInspectionTest extends LightPlatformCodeInsightFixture return PluginPathManager.getPluginHomePath("properties") + "/testData/alphaUnsorted/"; } - @Override - protected boolean isWriteActionRequired() { - return false; - } } diff --git a/plugins/properties/testSrc/com/intellij/lang/properties/ResourceBundleTest.java b/plugins/properties/testSrc/com/intellij/lang/properties/ResourceBundleTest.java index 45a7f37b4f4f..5ead1f6bbb47 100644 --- a/plugins/properties/testSrc/com/intellij/lang/properties/ResourceBundleTest.java +++ b/plugins/properties/testSrc/com/intellij/lang/properties/ResourceBundleTest.java @@ -76,9 +76,4 @@ public class ResourceBundleTest extends LightPlatformCodeInsightFixtureTestCase assertEquals(fileNameToCheckAfter, toCheck.getName()); } - - @Override - protected boolean isWriteActionRequired() { - return false; - } } diff --git a/plugins/properties/testSrc/com/intellij/lang/properties/xml/XmlPropertiesTest.java b/plugins/properties/testSrc/com/intellij/lang/properties/xml/XmlPropertiesTest.java index fb965c6c5ab8..50950c98ccc3 100644 --- a/plugins/properties/testSrc/com/intellij/lang/properties/xml/XmlPropertiesTest.java +++ b/plugins/properties/testSrc/com/intellij/lang/properties/xml/XmlPropertiesTest.java @@ -117,9 +117,4 @@ public class XmlPropertiesTest extends LightPlatformCodeInsightFixtureTestCase { protected String getTestDataPath() { return PluginPathManager.getPluginHomePath("properties") + "/testData/xml/"; } - - @Override - protected boolean isWriteActionRequired() { - return false; - } } diff --git a/plugins/svn4idea/testSource/org/jetbrains/idea/svn/SvnCommittedViewTest.java b/plugins/svn4idea/testSource/org/jetbrains/idea/svn/SvnCommittedViewTest.java index d585180dbee7..0ce73b757787 100644 --- a/plugins/svn4idea/testSource/org/jetbrains/idea/svn/SvnCommittedViewTest.java +++ b/plugins/svn4idea/testSource/org/jetbrains/idea/svn/SvnCommittedViewTest.java @@ -38,11 +38,6 @@ import java.util.Collection; import java.util.List; public class SvnCommittedViewTest extends Svn17TestCase { - @Override - @Before - public void setUp() throws Exception { - super.setUp(); - } @Test public void testAdd() throws Exception { diff --git a/plugins/svn4idea/testSource/org/jetbrains/idea/svn16/SvnCommittedViewTest.java b/plugins/svn4idea/testSource/org/jetbrains/idea/svn16/SvnCommittedViewTest.java index 2badc978c2b2..94f3109847ac 100644 --- a/plugins/svn4idea/testSource/org/jetbrains/idea/svn16/SvnCommittedViewTest.java +++ b/plugins/svn4idea/testSource/org/jetbrains/idea/svn16/SvnCommittedViewTest.java @@ -40,12 +40,6 @@ import java.util.List; public class SvnCommittedViewTest extends Svn16TestCase { - @Override - @Before - public void setUp() throws Exception { - super.setUp(); - } - @Test public void testAdd() throws Exception { enableSilentOperation(VcsConfiguration.StandardConfirmation.ADD); diff --git a/plugins/tasks/tasks-tests/test/com/intellij/tasks/TestRepository.java b/plugins/tasks/tasks-tests/test/com/intellij/tasks/TestRepository.java index 337ba8dad9eb..d046bd6436b2 100644 --- a/plugins/tasks/tasks-tests/test/com/intellij/tasks/TestRepository.java +++ b/plugins/tasks/tasks-tests/test/com/intellij/tasks/TestRepository.java @@ -26,10 +26,6 @@ public class TestRepository extends BaseRepository { return this; } - @Override - public void testConnection() throws Exception { - } - @Override public Task[] getIssues(@Nullable String query, int max, long since) throws Exception { return myTasks; diff --git a/plugins/tasks/tasks-tests/test/com/intellij/tasks/jira/jql/ParsingTest.java b/plugins/tasks/tasks-tests/test/com/intellij/tasks/jira/jql/ParsingTest.java index 485addd2e800..cb176a870d2c 100644 --- a/plugins/tasks/tasks-tests/test/com/intellij/tasks/jira/jql/ParsingTest.java +++ b/plugins/tasks/tasks-tests/test/com/intellij/tasks/jira/jql/ParsingTest.java @@ -73,11 +73,6 @@ public class ParsingTest extends ParsingTestCase { return true; } - @Override - protected boolean skipSpaces() { - return false; - } - @Override protected String getTestDataPath() { // trailing slash will be inserted in superclass constructor diff --git a/plugins/yaml/testSrc/org/jetbrains/yaml/psiModification/YAMLMappingModificationTest.java b/plugins/yaml/testSrc/org/jetbrains/yaml/psiModification/YAMLMappingModificationTest.java index 991c34dbdb0f..b03d7af4a839 100644 --- a/plugins/yaml/testSrc/org/jetbrains/yaml/psiModification/YAMLMappingModificationTest.java +++ b/plugins/yaml/testSrc/org/jetbrains/yaml/psiModification/YAMLMappingModificationTest.java @@ -17,13 +17,7 @@ public class YAMLMappingModificationTest extends LightPlatformCodeInsightFixture return PathManagerEx.getCommunityHomePath() + "/plugins/yaml/testSrc/org/jetbrains/yaml/psiModification/data/"; } - @Override - protected void setUp() throws Exception { - super.setUp(); - - } - - // TODO make + // TODO make public void testCreateKeyInEmptyFile() { doMappingTest("key", "value"); diff --git a/python/testSrc/com/jetbrains/env/python/PyDynamicTypesTest.java b/python/testSrc/com/jetbrains/env/python/PyDynamicTypesTest.java index bf2d7fddaf08..bca39132a17b 100644 --- a/python/testSrc/com/jetbrains/env/python/PyDynamicTypesTest.java +++ b/python/testSrc/com/jetbrains/env/python/PyDynamicTypesTest.java @@ -48,10 +48,6 @@ public class PyDynamicTypesTest extends PyEnvTestCase { private void doTest(final String scriptName) { runPythonTest(new PyDebuggerTask("/" + "dynamicTypes", scriptName) { - @Override - public void setUp(String testName) throws Exception { - super.setUp(testName); - } @Override public void before() throws Exception { diff --git a/python/testSrc/com/jetbrains/env/python/PythonDebuggerTest.java b/python/testSrc/com/jetbrains/env/python/PythonDebuggerTest.java index e0d570cff412..346d32ed95fc 100644 --- a/python/testSrc/com/jetbrains/env/python/PythonDebuggerTest.java +++ b/python/testSrc/com/jetbrains/env/python/PythonDebuggerTest.java @@ -333,9 +333,6 @@ public class PythonDebuggerTest extends PyEnvTestCase { @Test public void testInput() throws Exception { runPythonTest(new PyDebuggerTask("/debug", "test_input.py") { - @Override - public void before() throws Exception { - } @Override public void testing() throws Exception { diff --git a/python/testSrc/com/jetbrains/env/python/debug/PyDebuggerTask.java b/python/testSrc/com/jetbrains/env/python/debug/PyDebuggerTask.java index b6069929e225..dd49a4b5fa96 100644 --- a/python/testSrc/com/jetbrains/env/python/debug/PyDebuggerTask.java +++ b/python/testSrc/com/jetbrains/env/python/debug/PyDebuggerTask.java @@ -141,10 +141,6 @@ public class PyDebuggerTask extends PyBaseDebuggerTask { myDebugProcess.getProcessHandler().addProcessListener(new ProcessAdapter() { - @Override - public void onTextAvailable(ProcessEvent event, Key outputType) { - } - @Override public void processTerminated(ProcessEvent event) { myTerminateSemaphore.release(); diff --git a/python/testSrc/com/jetbrains/python/inspections/PyAssignmentToLoopOrWithParameterInspectionTest.java b/python/testSrc/com/jetbrains/python/inspections/PyAssignmentToLoopOrWithParameterInspectionTest.java index 2870935a4f08..fcd391b2d0a5 100644 --- a/python/testSrc/com/jetbrains/python/inspections/PyAssignmentToLoopOrWithParameterInspectionTest.java +++ b/python/testSrc/com/jetbrains/python/inspections/PyAssignmentToLoopOrWithParameterInspectionTest.java @@ -36,9 +36,4 @@ public class PyAssignmentToLoopOrWithParameterInspectionTest extends PyInspectio protected Class getInspectionClass() { return PyAssignmentToLoopOrWithParameterInspection.class; } - - @Override - protected boolean isWeakWarning() { - return true; - } } diff --git a/spellchecker/testSrc/com/intellij/spellchecker/inspection/SpellcheckerInspectionTestCase.java b/spellchecker/testSrc/com/intellij/spellchecker/inspection/SpellcheckerInspectionTestCase.java index 6237150bcdff..8910cb259456 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/inspection/SpellcheckerInspectionTestCase.java +++ b/spellchecker/testSrc/com/intellij/spellchecker/inspection/SpellcheckerInspectionTestCase.java @@ -25,11 +25,6 @@ public abstract class SpellcheckerInspectionTestCase extends LightPlatformCodeIn return true; } - @Override - protected boolean isWriteActionRequired() { - return false; - } - public static String getSpellcheckerTestDataPath() { return "/spellchecker/testData/"; } diff --git a/spellchecker/testSrc/com/intellij/spellchecker/ui/SpellCheckingEditorCustomizationTest.java b/spellchecker/testSrc/com/intellij/spellchecker/ui/SpellCheckingEditorCustomizationTest.java index d3cc45367abf..2c2121e31ad2 100644 --- a/spellchecker/testSrc/com/intellij/spellchecker/ui/SpellCheckingEditorCustomizationTest.java +++ b/spellchecker/testSrc/com/intellij/spellchecker/ui/SpellCheckingEditorCustomizationTest.java @@ -38,11 +38,6 @@ public class SpellCheckingEditorCustomizationTest extends LightPlatformCodeInsig testEnabled(); } - @Override - protected boolean isWriteActionRequired() { - return false; - } - private void doTest(boolean enabled, String document) { InspectionProfileImpl.INIT_INSPECTIONS = true; try { diff --git a/xml/dom-tests/tests/com/intellij/util/xml/stubs/DomStubBuilderTest.java b/xml/dom-tests/tests/com/intellij/util/xml/stubs/DomStubBuilderTest.java index 0677ccc0abce..59f0d74e27a6 100644 --- a/xml/dom-tests/tests/com/intellij/util/xml/stubs/DomStubBuilderTest.java +++ b/xml/dom-tests/tests/com/intellij/util/xml/stubs/DomStubBuilderTest.java @@ -123,10 +123,5 @@ public class DomStubBuilderTest extends DomStubTest { public void registerExtensions(@NotNull Bar bar, @NotNull DomExtensionsRegistrar registrar) { registrar.registerAttributeChildExtension(new XmlName("extend"), Custom.class); } - - @Override - public boolean supportsStubs() { - return true; - } } } diff --git a/xml/tests/src/com/intellij/codeInsight/completion/XmlSyncTagTest.java b/xml/tests/src/com/intellij/codeInsight/completion/XmlSyncTagTest.java index 22f829fb409d..7bf24f7f81f3 100644 --- a/xml/tests/src/com/intellij/codeInsight/completion/XmlSyncTagTest.java +++ b/xml/tests/src/com/intellij/codeInsight/completion/XmlSyncTagTest.java @@ -32,11 +32,6 @@ public abstract class XmlSyncTagTest extends LightPlatformCodeInsightFixtureTest myFixture.setCaresAboutInjection(false); } - @Override - protected void tearDown() throws Exception { - super.tearDown(); - } - protected void doTest(final String text, final String toType, final String result) { doTest(XmlFileType.INSTANCE, text, toType, result); } @@ -87,9 +82,4 @@ public abstract class XmlSyncTagTest extends LightPlatformCodeInsightFixtureTest }, "Typing", DocCommandGroupId.noneGroupId(myFixture.getEditor().getDocument()), myFixture.getEditor().getDocument()); myFixture.checkResult(result); } - - @Override - protected boolean isWriteActionRequired() { - return false; - } } diff --git a/xml/tests/src/com/intellij/codeInsight/daemon/quickFix/RealFetchTest.java b/xml/tests/src/com/intellij/codeInsight/daemon/quickFix/RealFetchTest.java index 91c0747df9dd..9bce852ad9dc 100644 --- a/xml/tests/src/com/intellij/codeInsight/daemon/quickFix/RealFetchTest.java +++ b/xml/tests/src/com/intellij/codeInsight/daemon/quickFix/RealFetchTest.java @@ -64,9 +64,4 @@ public class RealFetchTest extends LightPlatformCodeInsightFixtureTestCase { ExternalResourceManager.getInstance().removeResource(url); }); } - - @Override - protected boolean isWriteActionRequired() { - return false; - } } diff --git a/xml/tests/src/com/intellij/xml/XMLCatalogManagerTest.java b/xml/tests/src/com/intellij/xml/XMLCatalogManagerTest.java index d2a63dc379df..e58affcf0c9a 100644 --- a/xml/tests/src/com/intellij/xml/XMLCatalogManagerTest.java +++ b/xml/tests/src/com/intellij/xml/XMLCatalogManagerTest.java @@ -81,11 +81,6 @@ public class XMLCatalogManagerTest extends LightPlatformCodeInsightFixtureTestCa return new XMLCatalogManager(getTestDataPath() + "catalog.properties"); } - @Override - protected boolean isWriteActionRequired() { - return false; - } - @Override protected String getBasePath() { return "/xml/tests/testData/catalog/";