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