Drop throws usages with changes in Java code
This commit is contained in:
-2
@@ -44,7 +44,6 @@ import java.io.IOException
|
||||
public abstract class JetLightCodeInsightFixtureTestCase : LightCodeInsightFixtureTestCase() {
|
||||
private var kotlinInternalModeOriginalValue = false
|
||||
|
||||
throws(javaClass<Exception>())
|
||||
override fun setUp() {
|
||||
super.setUp()
|
||||
(StartupManager.getInstance(getProject()) as StartupManagerImpl).runPostStartupActivities()
|
||||
@@ -54,7 +53,6 @@ public abstract class JetLightCodeInsightFixtureTestCase : LightCodeInsightFixtu
|
||||
KotlinInternalMode.enabled = true
|
||||
}
|
||||
|
||||
throws(javaClass<Exception>())
|
||||
override fun tearDown() {
|
||||
KotlinInternalMode.enabled = kotlinInternalModeOriginalValue
|
||||
VfsRootAccess.disallowRootAccess(JetTestUtils.getHomeDirectory())
|
||||
|
||||
@@ -282,7 +282,7 @@ public abstract class AbstractJetFindUsagesTest extends JetLightCodeInsightFixtu
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUp() throws Exception {
|
||||
public void setUp() {
|
||||
super.setUp();
|
||||
myFixture.setTestDataPath(PluginTestCaseBase.getTestDataPathBase() + "/findUsages");
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ public class WordSelectionTest extends JetLightCodeInsightFixtureTestCase {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUp() throws Exception {
|
||||
public void setUp() {
|
||||
super.setUp();
|
||||
String testRelativeDir = "wordSelection";
|
||||
myFixture.setTestDataPath(new File(PluginTestCaseBase.getTestDataPathBase(), testRelativeDir).getPath() +
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ import java.io.IOException;
|
||||
|
||||
public abstract class AbstractOutOfBlockModificationTest extends JetLightCodeInsightFixtureTestCase {
|
||||
@Override
|
||||
public void setUp() throws Exception {
|
||||
public void setUp() {
|
||||
super.setUp();
|
||||
myFixture.setTestDataPath(PluginTestCaseBase.getTestDataPathBase() + "/codeInsight/outOfBlock");
|
||||
}
|
||||
|
||||
@@ -42,14 +42,14 @@ import java.util.Arrays;
|
||||
|
||||
public class LiveTemplatesTest extends JetLightCodeInsightFixtureTestCase {
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
protected void setUp() {
|
||||
super.setUp();
|
||||
myFixture.setTestDataPath(new File(PluginTestCaseBase.getTestDataPathBase(), "/templates").getPath() + File.separator);
|
||||
((TemplateManagerImpl) TemplateManager.getInstance(getProject())).setTemplateTesting(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void tearDown() throws Exception {
|
||||
protected void tearDown() {
|
||||
((TemplateManagerImpl) TemplateManager.getInstance(getProject())).setTemplateTesting(false);
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ import org.jetbrains.kotlin.idea.test.PluginTestCaseBase;
|
||||
public final class OverrideImplementTest extends AbstractOverrideImplementTest {
|
||||
|
||||
@Override
|
||||
public void setUp() throws Exception {
|
||||
public void setUp() {
|
||||
super.setUp();
|
||||
myFixture.setTestDataPath(PluginTestCaseBase.getTestDataPathBase() + "/codeInsight/overrideImplement");
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ public final class OverrideImplementWithLibTest extends AbstractOverrideImplemen
|
||||
private static final String TEST_PATH = PluginTestCaseBase.getTestDataPathBase() + "/codeInsight/overrideImplement/withLib";
|
||||
|
||||
@Override
|
||||
public void setUp() throws Exception {
|
||||
public void setUp() {
|
||||
super.setUp();
|
||||
myFixture.setTestDataPath(TEST_PATH);
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.jetbrains.kotlin.idea.highlighter.AbstractHighlightingTest;
|
||||
|
||||
public abstract class AbstractKDocHighlightingTest extends AbstractHighlightingTest {
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
protected void setUp() {
|
||||
super.setUp();
|
||||
myFixture.enableInspections(KDocUnresolvedReferenceInspection.class);
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ public abstract class AbstractKotlinGotoTest extends JetLightCodeInsightFixtureT
|
||||
private String dirPath = null;
|
||||
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
protected void setUp() {
|
||||
TestMetadata annotation = getClass().getAnnotation(TestMetadata.class);
|
||||
dirPath = annotation.value();
|
||||
|
||||
@@ -62,7 +62,7 @@ public abstract class AbstractKotlinGotoTest extends JetLightCodeInsightFixtureT
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void tearDown() throws Exception {
|
||||
protected void tearDown() {
|
||||
super.tearDown();
|
||||
dirPath = null;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public abstract class AbstractJetSafeDeleteTest extends JetLightCodeInsightFixtu
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUp() throws Exception {
|
||||
public void setUp() {
|
||||
super.setUp();
|
||||
String pathBase = PluginTestCaseBase.getTestDataPathBase();
|
||||
myFixture.setTestDataPath(pathBase.substring(0, pathBase.lastIndexOf("/idea/testData")));
|
||||
|
||||
Reference in New Issue
Block a user