Unneeded exceptions

This commit is contained in:
Roman Shevchenko
2013-03-14 21:04:01 +01:00
parent d1fd12dd42
commit 238483108b
2 changed files with 6 additions and 6 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2012 JetBrains s.r.o.
* Copyright 2000-2013 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.
@@ -22,8 +22,8 @@ import com.intellij.pom.java.LanguageLevel;
*/
public abstract class LightQuickFix15TestCase extends LightQuickFixTestCase {
@Override
protected void doAllTests() throws Exception {
setLanguageLevel(LanguageLevel.JDK_1_5);
protected void doAllTests() {
setLanguageLevel(LanguageLevel.JDK_1_5);
super.doAllTests();
}
}
@@ -121,7 +121,7 @@ public abstract class LightQuickFixTestCase extends LightDaemonAnalyzerTestCase
if (comment == null) {
comment = commenter.getBlockCommentPrefix();
}
// "quick fix action text to perform" "should be available"
assert comment != null : commenter;
Pattern pattern = Pattern.compile("^" + comment.replace("*", "\\*") + actionPattern, Pattern.DOTALL);
@@ -197,7 +197,7 @@ public abstract class LightQuickFixTestCase extends LightDaemonAnalyzerTestCase
return null;
}
public static void doAllTests(QuickFixTestCase testCase) throws Exception {
public static void doAllTests(QuickFixTestCase testCase) {
assertNotNull("getBasePath() should not return null!", testCase.getBasePath());
final String testDirPath = testCase.getTestDataPath().replace(File.separatorChar, '/') + testCase.getBasePath();
@@ -224,7 +224,7 @@ public abstract class LightQuickFixTestCase extends LightDaemonAnalyzerTestCase
doTestFor(fileSuffix, createWrapper());
}
protected void doAllTests() throws Exception {
protected void doAllTests() {
doAllTests(createWrapper());
}