From 4426c78bf6f31dabde0d6620f935dbe14e198fb9 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Mon, 11 Aug 2014 16:19:44 +0400 Subject: [PATCH] Cleanup (pointless exception) --- .../lang/manifest/ManifestCompletionTest.java | 10 +++++----- .../LightPlatformCodeInsightTestCase.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java/manifest/test/org/jetbrains/lang/manifest/ManifestCompletionTest.java b/java/manifest/test/org/jetbrains/lang/manifest/ManifestCompletionTest.java index a0f1bb998710..a52a4c564933 100644 --- a/java/manifest/test/org/jetbrains/lang/manifest/ManifestCompletionTest.java +++ b/java/manifest/test/org/jetbrains/lang/manifest/ManifestCompletionTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2013 JetBrains s.r.o. + * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,14 +19,14 @@ import com.intellij.codeInsight.completion.LightCompletionTestCase; import com.intellij.testFramework.LightPlatformCodeInsightTestCase; public class ManifestCompletionTest extends LightCompletionTestCase { - public void testHeaderNameCompletionVariants() throws Exception { + public void testHeaderNameCompletionVariants() { LightPlatformCodeInsightTestCase.configureFromFileText("MANIFEST.MF", "Specification-V\n"); complete(); assertContainsItems("Specification-Vendor", "Specification-Version"); assertNotContainItems("Specification-Title"); } - public void testHeaderNameEnterCompletion() throws Exception { + public void testHeaderNameEnterCompletion() { LightPlatformCodeInsightTestCase.configureFromFileText("MANIFEST.MF", "Specification-V\n"); complete(); assertContainsItems("Specification-Vendor"); @@ -34,7 +34,7 @@ public class ManifestCompletionTest extends LightCompletionTestCase { checkResultByText("Specification-Vendor: \n"); } - public void testHeaderNameColonCompletion() throws Exception { + public void testHeaderNameColonCompletion() { LightPlatformCodeInsightTestCase.configureFromFileText("MANIFEST.MF", "Specification-V\n"); complete(); assertContainsItems("Specification-Vendor"); @@ -42,7 +42,7 @@ public class ManifestCompletionTest extends LightCompletionTestCase { checkResultByText("Specification-Vendor: \n"); } - public void testHeaderNameSpaceCompletion() throws Exception { + public void testHeaderNameSpaceCompletion() { LightPlatformCodeInsightTestCase.configureFromFileText("MANIFEST.MF", "Specification-V\n"); complete(); assertContainsItems("Specification-Vendor"); diff --git a/platform/testFramework/src/com/intellij/testFramework/LightPlatformCodeInsightTestCase.java b/platform/testFramework/src/com/intellij/testFramework/LightPlatformCodeInsightTestCase.java index 3c1f96113532..48e09a2e89b6 100644 --- a/platform/testFramework/src/com/intellij/testFramework/LightPlatformCodeInsightTestCase.java +++ b/platform/testFramework/src/com/intellij/testFramework/LightPlatformCodeInsightTestCase.java @@ -145,7 +145,7 @@ public abstract class LightPlatformCodeInsightTestCase extends LightPlatformTest * @throws java.io.IOException */ @NotNull - protected static Document configureFromFileText(@NonNls @NotNull final String fileName, @NonNls @NotNull final String fileText) throws IOException { + protected static Document configureFromFileText(@NonNls @NotNull final String fileName, @NonNls @NotNull final String fileText) { return new WriteCommandAction(null) { @Override protected void run(@NotNull Result result) throws Throwable {