normalize tests

This commit is contained in:
Anna Kozlova
2014-01-07 17:16:14 +01:00
parent d9de437d05
commit 354936fb5f
4 changed files with 29 additions and 4 deletions
@@ -15,13 +15,21 @@
*/
package com.intellij.codeInsight.daemon.quickFix;
import com.intellij.codeInspection.LocalInspectionTool;
import com.intellij.codeInspection.accessStaticViaInstance.AccessStaticViaInstance;
import org.jetbrains.annotations.NotNull;
public class AccessStaticViaInstanceTest extends LightQuickFixTestCase {
@NotNull
@Override
protected LocalInspectionTool[] configureLocalInspectionTools() {
return new LocalInspectionTool[] {new AccessStaticViaInstance()};
}
@Override
protected String getBasePath() {
return "/codeInsight/daemonCodeAnalyzer/quickFix/accessStaticViaInstance";
}
public void test() throws Exception { enableInspectionTool(new AccessStaticViaInstance()); doAllTests(); }
public void test() throws Exception { doAllTests(); }
}
@@ -6,9 +6,12 @@ import com.intellij.pom.java.LanguageLevel;
public class ChangeParameterClassTest extends LightQuickFix15TestCase {
@Override
protected LanguageLevel getLanguageLevel() {
return LanguageLevel.JDK_1_5;
}
public void test() throws Exception {
setLanguageLevel(LanguageLevel.JDK_1_5);
doAllTests();
}
@@ -15,14 +15,21 @@
*/
package com.intellij.codeInsight.daemon.quickFix;
import com.intellij.codeInspection.LocalInspectionTool;
import com.intellij.codeInspection.unusedSymbol.UnusedSymbolLocalInspection;
import org.jetbrains.annotations.NotNull;
/**
* @author Danila Ponomarenko
*/
public class CreateGetterOrSetterTest extends LightQuickFixTestCase {
@NotNull
@Override
protected LocalInspectionTool[] configureLocalInspectionTools() {
return new LocalInspectionTool[] {new UnusedSymbolLocalInspection()};
}
public void test() throws Exception {
enableInspectionTool(new UnusedSymbolLocalInspection());
doAllTests();
}
@@ -1,12 +1,19 @@
package com.intellij.codeInsight.daemon.quickFix;
import com.intellij.codeInspection.LocalInspectionTool;
import com.intellij.codeInspection.unneededThrows.RedundantThrowsDeclaration;
import org.jetbrains.annotations.NotNull;
public class MethodThrowsTest extends LightQuickFixTestCase {
@NotNull
@Override
protected LocalInspectionTool[] configureLocalInspectionTools() {
return new LocalInspectionTool[] {new RedundantThrowsDeclaration()};
}
public void test() throws Exception { enableInspectionTool(new RedundantThrowsDeclaration()); doAllTests(); }
public void test() throws Exception { doAllTests(); }
@Override
protected String getBasePath() {