mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (pointless exception)
This commit is contained in:
@@ -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");
|
||||
|
||||
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user