Cleanup (pointless exception)

This commit is contained in:
Roman Shevchenko
2014-08-11 16:19:44 +04:00
parent d132c90527
commit 4426c78bf6
2 changed files with 6 additions and 6 deletions
@@ -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<caret>\n");
complete();
assertContainsItems("Specification-Vendor", "Specification-Version");
assertNotContainItems("Specification-Title");
}
public void testHeaderNameEnterCompletion() throws Exception {
public void testHeaderNameEnterCompletion() {
LightPlatformCodeInsightTestCase.configureFromFileText("MANIFEST.MF", "Specification-V<caret>\n");
complete();
assertContainsItems("Specification-Vendor");
@@ -34,7 +34,7 @@ public class ManifestCompletionTest extends LightCompletionTestCase {
checkResultByText("Specification-Vendor: <caret>\n");
}
public void testHeaderNameColonCompletion() throws Exception {
public void testHeaderNameColonCompletion() {
LightPlatformCodeInsightTestCase.configureFromFileText("MANIFEST.MF", "Specification-V<caret>\n");
complete();
assertContainsItems("Specification-Vendor");
@@ -42,7 +42,7 @@ public class ManifestCompletionTest extends LightCompletionTestCase {
checkResultByText("Specification-Vendor: <caret>\n");
}
public void testHeaderNameSpaceCompletion() throws Exception {
public void testHeaderNameSpaceCompletion() {
LightPlatformCodeInsightTestCase.configureFromFileText("MANIFEST.MF", "Specification-V<caret>\n");
complete();
assertContainsItems("Specification-Vendor");
@@ -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<Document>(null) {
@Override
protected void run(@NotNull Result<Document> result) throws Throwable {