mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
testall -> parameterized (I)
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ import com.intellij.codeInspection.LocalInspectionTool;
|
||||
import com.intellij.codeInspection.accessStaticViaInstance.AccessStaticViaInstance;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class AccessStaticViaInstanceTest extends LightQuickFixTestCase {
|
||||
public class AccessStaticViaInstanceTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
+1
-2
@@ -22,10 +22,9 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.codeInspection.LocalInspectionTool;
|
||||
import com.intellij.codeInspection.dataFlow.DataFlowInspection;
|
||||
import com.intellij.codeInspection.nullable.NullableStuffInspection;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class AddAssertStatementFixTest extends LightQuickFixTestCase {
|
||||
public class AddAssertStatementFixTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class AddExceptionToCatchTest extends LightQuickFixTestCase {
|
||||
public class AddExceptionToCatchTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception {
|
||||
doAllTests();
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class AddExceptionToThrowsTest extends LightQuickFixTestCase {
|
||||
public class AddExceptionToThrowsTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception {
|
||||
doAllTests();
|
||||
}
|
||||
|
||||
+1
-2
@@ -1,9 +1,8 @@
|
||||
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
|
||||
|
||||
public class AddMethodBodyTest extends LightQuickFixTestCase {
|
||||
public class AddMethodBodyTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class AddNewArrayExpressionTest extends LightQuickFixTestCase {
|
||||
public class AddNewArrayExpressionTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class AddReturnTest extends LightQuickFixTestCase {
|
||||
public class AddReturnTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class AddTypeCastTest extends LightQuickFixTestCase {
|
||||
public class AddTypeCastTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class AddVariableInitializerTest extends LightQuickFixTestCase {
|
||||
public class AddVariableInitializerTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception {
|
||||
doAllTests();
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ import com.intellij.codeInspection.LocalInspectionTool;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
public class Anonymous2LambdaInspectionTest extends LightQuickFixTestCase {
|
||||
public class Anonymous2LambdaInspectionTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ import com.intellij.codeInspection.LocalInspectionTool;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
public class Anonymous2MethodReferenceInspectionTest extends LightQuickFixTestCase {
|
||||
public class Anonymous2MethodReferenceInspectionTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
/**
|
||||
* @author Danila Ponomarenko
|
||||
*/
|
||||
public class BreakStringOnLineBreaksTest extends LightQuickFixTestCase {
|
||||
public class BreakStringOnLineBreaksTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class BringVariableIntoScopeTest extends LightQuickFixTestCase {
|
||||
public class BringVariableIntoScopeTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-2
@@ -1,9 +1,8 @@
|
||||
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
|
||||
|
||||
public class CastConstructorParametersTest extends LightQuickFixTestCase {
|
||||
public class CastConstructorParametersTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-2
@@ -1,4 +1,3 @@
|
||||
|
||||
/*
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
@@ -16,7 +15,7 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class CastMethodParameters15Test extends LightQuickFixTestCase {
|
||||
public class CastMethodParameters15Test extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
|
||||
+3
-5
@@ -1,15 +1,13 @@
|
||||
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.openapi.roots.LanguageLevelProjectExtension;
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
public class CastMethodParametersTest extends LightQuickFixTestCase {
|
||||
public class CastMethodParametersTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
LanguageLevelProjectExtension.getInstance(getProject()).setLanguageLevel(LanguageLevel.JDK_1_3);
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_3;
|
||||
}
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
+8
-1
@@ -1,11 +1,18 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class ChangeExtendsToImplementsTest extends LightQuickFix15TestCase {
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
public class ChangeExtendsToImplementsTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
protected String getBasePath() {
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/changeExtendsToImplements";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+8
-1
@@ -1,9 +1,11 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class ChangeMethodSignatureFromUsageTest extends LightQuickFix15TestCase {
|
||||
public class ChangeMethodSignatureFromUsageTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@@ -11,4 +13,9 @@ public class ChangeMethodSignatureFromUsageTest extends LightQuickFix15TestCase
|
||||
protected String getBasePath() {
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/changeMethodSignatureFromUsage";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
+6
-2
@@ -2,10 +2,14 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
public class ChangeNewOperatorTypeTest extends LightQuickFixTestCase {
|
||||
public class ChangeNewOperatorTypeTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_7;
|
||||
}
|
||||
|
||||
public void test() throws Exception {
|
||||
setLanguageLevel(LanguageLevel.JDK_1_7);
|
||||
doAllTests();
|
||||
}
|
||||
|
||||
|
||||
+5
-9
@@ -1,16 +1,8 @@
|
||||
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
|
||||
|
||||
public class ChangeParameterClassTest extends LightQuickFix15TestCase {
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
|
||||
public class ChangeParameterClassTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception {
|
||||
doAllTests();
|
||||
}
|
||||
@@ -20,5 +12,9 @@ public class ChangeParameterClassTest extends LightQuickFix15TestCase {
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/changeParameterClass";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class ChangeStringLiteralToCharInMethodCallTest extends LightQuickFixTestCase {
|
||||
public class ChangeStringLiteralToCharInMethodCallTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class ChangeToAppendTest extends LightQuickFixTestCase {
|
||||
public class ChangeToAppendTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+8
-1
@@ -15,7 +15,9 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class ChangeTypeArgumentsFixTest extends LightQuickFix15TestCase {
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
public class ChangeTypeArgumentsFixTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@@ -23,4 +25,9 @@ public class ChangeTypeArgumentsFixTest extends LightQuickFix15TestCase {
|
||||
protected String getBasePath() {
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/changeTypeArgs";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
+8
-1
@@ -15,10 +15,12 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
/**
|
||||
* @author Danila Ponomarenko
|
||||
*/
|
||||
public class ConvertColorRepresentationTest extends LightQuickFix15TestCase {
|
||||
public class ConvertColorRepresentationTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@@ -26,4 +28,9 @@ public class ConvertColorRepresentationTest extends LightQuickFix15TestCase {
|
||||
protected String getBasePath() {
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/convertColorRepresentation";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
+8
-1
@@ -15,10 +15,12 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class ConvertDoubleToFloatFixTest extends LightQuickFix15TestCase {
|
||||
public class ConvertDoubleToFloatFixTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@@ -26,4 +28,9 @@ public class ConvertDoubleToFloatFixTest extends LightQuickFix15TestCase {
|
||||
protected String getBasePath() {
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/convertDoubleToFloat";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ import com.intellij.codeInspection.varScopeCanBeNarrowed.FieldCanBeLocalInspecti
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
public class ConvertFieldToLocalTest extends LightQuickFixTestCase {
|
||||
public class ConvertFieldToLocalTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class ConvertSwitchToIfTest extends LightQuickFixTestCase {
|
||||
public class ConvertSwitchToIfTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
+7
-1
@@ -15,7 +15,9 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class CreateAnnotationMethodFromUsageTest extends LightQuickFix15TestCase {
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
public class CreateAnnotationMethodFromUsageTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
@@ -23,4 +25,8 @@ public class CreateAnnotationMethodFromUsageTest extends LightQuickFix15TestCase
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/createAnnotationMethodFromUsage";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class CreateAnnotationTypeFromUsageTest extends LightQuickFixTestCase{
|
||||
public class CreateAnnotationTypeFromUsageTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
+7
-2
@@ -20,9 +20,14 @@ import com.intellij.psi.codeStyle.CodeStyleSettingsManager;
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class CreateClassFromNewTest extends LightQuickFixTestCase {
|
||||
public void test() throws Exception {
|
||||
public class CreateClassFromNewTest extends LightQuickFixParameterizedTestCase {
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
CodeStyleSettingsManager.getSettings(getProject()).SPACE_BEFORE_CLASS_LBRACE = true;
|
||||
}
|
||||
|
||||
public void test() throws Exception {
|
||||
doAllTests();
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class CreateClassFromUsageTest extends LightQuickFixTestCase{
|
||||
public class CreateClassFromUsageTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class CreateConstructorFromCallTest extends LightQuickFixTestCase {
|
||||
public class CreateConstructorFromCallTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class CreateConstructorFromSuperTest extends LightQuickFixTestCase {
|
||||
public class CreateConstructorFromSuperTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class CreateConstructorMatchingSuperTest extends LightQuickFixTestCase {
|
||||
public class CreateConstructorMatchingSuperTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
/**
|
||||
* @author cdr
|
||||
*/
|
||||
public class CreateConstructorParameterFromFieldTest extends LightQuickFixTestCase {
|
||||
public class CreateConstructorParameterFromFieldTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
+7
-1
@@ -1,9 +1,11 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class CreateEnumConstantFromUsageTest extends LightQuickFix15TestCase{
|
||||
public class CreateEnumConstantFromUsageTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@@ -12,4 +14,8 @@ public class CreateEnumConstantFromUsageTest extends LightQuickFix15TestCase{
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/createEnumConstantFromUsage";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
/**
|
||||
* @author Danila Ponomarenko
|
||||
*/
|
||||
public class CreateGetterOrSetterTest extends LightQuickFixTestCase {
|
||||
public class CreateGetterOrSetterTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
/**
|
||||
* @author yole
|
||||
*/
|
||||
public class CreateInnerClassFromNewTest extends LightQuickFixTestCase {
|
||||
public class CreateInnerClassFromNewTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception {
|
||||
doAllTests();
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class CreateInnerClassFromUsageTest extends LightQuickFixTestCase{
|
||||
public class CreateInnerClassFromUsageTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class CreateLocalFromUsageTest extends LightQuickFixTestCase {
|
||||
public class CreateLocalFromUsageTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class CreateParameterFromUsageTest extends LightQuickFixTestCase{
|
||||
public class CreateParameterFromUsageTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
+7
-1
@@ -15,7 +15,9 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class CreatePropertyFromUsageTest extends LightQuickFix15TestCase {
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
public class CreatePropertyFromUsageTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
@@ -23,4 +25,8 @@ public class CreatePropertyFromUsageTest extends LightQuickFix15TestCase {
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/createPropertyFromUsage";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-2
@@ -1,9 +1,8 @@
|
||||
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
|
||||
|
||||
public class DeferFinalAssignmentTest extends LightQuickFixTestCase {
|
||||
public class DeferFinalAssignmentTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import com.intellij.codeInsight.template.impl.TemplateState;
|
||||
/**
|
||||
* @author anna
|
||||
*/
|
||||
public class DelegateWithDefaultParamValueTest extends LightQuickFixTestCase {
|
||||
public class DelegateWithDefaultParamValueTest extends LightQuickFixParameterizedTestCase {
|
||||
@Override
|
||||
protected void doAction(String text, boolean actionShouldBeAvailable, String testFullPath, String testName)
|
||||
throws Exception {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class DeleteCatchTest extends LightQuickFixTestCase {
|
||||
public class DeleteCatchTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class DeleteMultiCatchTest extends LightQuickFixTestCase {
|
||||
public class DeleteMultiCatchTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import com.intellij.codeInspection.unusedImport.UnusedImportLocalInspection;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
public class EnableOptimizeImportsOnTheFlyTest extends LightQuickFixTestCase {
|
||||
public class EnableOptimizeImportsOnTheFlyTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import com.intellij.codeInspection.dataFlow.DataFlowInspection;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class FixAllQuickfixTest extends LightQuickFixTestCase {
|
||||
public class FixAllQuickfixTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class FlipIntersectionTypesTest extends LightQuickFixTestCase {
|
||||
public class FlipIntersectionTypesTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception {
|
||||
doAllTests();
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class GeneralizeCatchTest extends LightQuickFixTestCase {
|
||||
public class GeneralizeCatchTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception {
|
||||
doAllTests();
|
||||
}
|
||||
|
||||
+8
-1
@@ -1,9 +1,11 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public class GenericCreateFromUsageTest extends LightQuickFix15TestCase {
|
||||
public class GenericCreateFromUsageTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@@ -11,4 +13,9 @@ public class GenericCreateFromUsageTest extends LightQuickFix15TestCase {
|
||||
protected String getBasePath() {
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/genericCreateFromUsage";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
+7
-1
@@ -18,12 +18,13 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
import com.intellij.codeInspection.LocalInspectionTool;
|
||||
import com.intellij.codeInspection.i18n.I18nInspection;
|
||||
import com.intellij.openapi.util.Comparing;
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author yole
|
||||
*/
|
||||
public class I18nQuickFixTest extends LightQuickFix15TestCase {
|
||||
public class I18nQuickFixTest extends LightQuickFixParameterizedTestCase {
|
||||
private boolean myMustBeAvailableAfterInvoke;
|
||||
|
||||
@NotNull
|
||||
@@ -50,4 +51,9 @@ public class I18nQuickFixTest extends LightQuickFix15TestCase {
|
||||
protected boolean shouldBeAvailableAfterExecution() {
|
||||
return myMustBeAvailableAfterInvoke;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import com.intellij.codeInspection.LocalInspectionTool;
|
||||
import com.intellij.codeInspection.unusedSymbol.UnusedSymbolLocalInspection;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class InitializeFinalFieldInConstructorFixTest extends LightQuickFixTestCase {
|
||||
public class InitializeFinalFieldInConstructorFixTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class InsertNewTest extends LightQuickFixTestCase {
|
||||
public class InsertNewTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-2
@@ -1,9 +1,8 @@
|
||||
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
|
||||
|
||||
public class InsertSuperTest extends LightQuickFixTestCase {
|
||||
public class InsertSuperTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+6
-2
@@ -1,4 +1,3 @@
|
||||
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
*
|
||||
@@ -17,8 +16,9 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
public class IterateOverTest extends LightQuickFix15TestCase {
|
||||
public class IterateOverTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@@ -27,5 +27,9 @@ public class IterateOverTest extends LightQuickFix15TestCase {
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/iterateOver";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+6
-1
@@ -12,9 +12,10 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.codeInspection.LocalInspectionTool;
|
||||
import com.intellij.codeInspection.javaDoc.JavaDocLocalInspection;
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class JavadocInspectionQuickFixTest extends LightQuickFix15TestCase {
|
||||
public class JavadocInspectionQuickFixTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
@@ -38,4 +39,8 @@ public class JavadocInspectionQuickFixTest extends LightQuickFix15TestCase {
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/javadocTags";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -20,7 +20,7 @@ import com.intellij.codeInspection.LocalInspectionTool;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
public class Lambda2MethodReferenceInspectionTest extends LightQuickFixTestCase {
|
||||
public class Lambda2MethodReferenceInspectionTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
-29
@@ -1,29 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
/**
|
||||
* @author ven
|
||||
*/
|
||||
public abstract class LightQuickFix15TestCase extends LightQuickFixTestCase {
|
||||
@Override
|
||||
protected void doAllTests() {
|
||||
setLanguageLevel(LanguageLevel.JDK_1_5);
|
||||
super.doAllTests();
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -6,7 +6,7 @@ import com.intellij.codeInsight.intention.IntentionAction;
|
||||
* tests corresponding intention for availability only, does not invoke action
|
||||
* @author cdr
|
||||
*/
|
||||
public abstract class LightQuickFixAvailabilityTestCase extends LightQuickFixTestCase {
|
||||
public abstract class LightQuickFixAvailabilityTestCase extends LightQuickFixParameterizedTestCase {
|
||||
@Override
|
||||
protected void doAction(final String text, final boolean actionShouldBeAvailable, final String testFullPath, final String testName)
|
||||
throws Exception {
|
||||
|
||||
+8
-1
@@ -15,12 +15,19 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class MakeExtendsThrowableTest extends LightQuickFix15TestCase {
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
public class MakeExtendsThrowableTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
protected String getBasePath() {
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/makeExtendsThrowable";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class MethodReturnBooleanTest extends LightQuickFixTestCase {
|
||||
public class MethodReturnBooleanTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception {
|
||||
doAllTests();
|
||||
|
||||
+6
-2
@@ -1,9 +1,9 @@
|
||||
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
public class MethodReturnTest extends LightQuickFix15TestCase {
|
||||
public class MethodReturnTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@@ -12,5 +12,9 @@ public class MethodReturnTest extends LightQuickFix15TestCase {
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/methodReturn";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -1,4 +1,3 @@
|
||||
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.codeInspection.LocalInspectionTool;
|
||||
@@ -6,7 +5,7 @@ import com.intellij.codeInspection.unneededThrows.RedundantThrowsDeclaration;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
public class MethodThrowsTest extends LightQuickFixTestCase {
|
||||
public class MethodThrowsTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class Modifier18Test extends LightQuickFixTestCase {
|
||||
public class Modifier18Test extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
@@ -2,7 +2,7 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
public class ModifierTest extends LightQuickFixTestCase {
|
||||
public class ModifierTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class MoveBoundClassToFrontTest extends LightQuickFixTestCase {
|
||||
public class MoveBoundClassToFrontTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception {
|
||||
doAllTests();
|
||||
}
|
||||
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class MoveCatchUpTest extends LightQuickFixTestCase {
|
||||
public class MoveCatchUpTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception {
|
||||
doAllTests();
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class NegationBroadScopeTest extends LightQuickFixTestCase {
|
||||
public class NegationBroadScopeTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
+7
-2
@@ -1,4 +1,3 @@
|
||||
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
*
|
||||
@@ -16,7 +15,9 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class OverrideMethodTest extends LightQuickFix15TestCase {
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
public class OverrideMethodTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception {
|
||||
doAllTests();
|
||||
@@ -27,5 +28,9 @@ public class OverrideMethodTest extends LightQuickFix15TestCase {
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/overrideMethod";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class PermuteArgumentsTest extends LightQuickFixTestCase {
|
||||
public class PermuteArgumentsTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class PushConditionInCallTest extends LightQuickFixTestCase{
|
||||
public class PushConditionInCallTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class QualifyThisArgumentFixTest extends LightQuickFixTestCase {
|
||||
public class QualifyThisArgumentFixTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
/**
|
||||
* @author anna
|
||||
*/
|
||||
public class QualifyWithThisFixTest extends LightQuickFixTestCase {
|
||||
public class QualifyWithThisFixTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ import com.intellij.codeInspection.RedundantLambdaCodeBlockInspection;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
public class RedundantLambdaCodeBlockInspectionTest extends LightQuickFixTestCase {
|
||||
public class RedundantLambdaCodeBlockInspectionTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class RedundantLambdaParameterTypeIntentionTest extends LightQuickFixTestCase {
|
||||
public class RedundantLambdaParameterTypeIntentionTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
+1
-2
@@ -1,9 +1,8 @@
|
||||
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
|
||||
|
||||
public class RemoveNewQualifierTest extends LightQuickFixTestCase {
|
||||
public class RemoveNewQualifierTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class RemoveQualifierTest extends LightQuickFixTestCase {
|
||||
public class RemoveQualifierTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class RemoveRedundantArgumentTest extends LightQuickFixTestCase {
|
||||
public class RemoveRedundantArgumentTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
* User: anna
|
||||
* Date: Aug 30, 2010
|
||||
*/
|
||||
public class RemoveRedundantElseActionTest extends LightQuickFixTestCase {
|
||||
public class RemoveRedundantElseActionTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
public class RemoveRedundantUncheckedSuppressionTest extends LightQuickFixTestCase {
|
||||
public class RemoveRedundantUncheckedSuppressionTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class RemoveTypeArgumentsTest extends LightQuickFixTestCase {
|
||||
public class RemoveTypeArgumentsTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
+1
-2
@@ -1,4 +1,3 @@
|
||||
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.codeInspection.LocalInspectionTool;
|
||||
@@ -6,7 +5,7 @@ import com.intellij.codeInspection.unusedSymbol.UnusedSymbolLocalInspection;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
public class RemoveUnusedParameterTest extends LightQuickFixTestCase {
|
||||
public class RemoveUnusedParameterTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
|
||||
@NotNull
|
||||
|
||||
+1
-2
@@ -1,11 +1,10 @@
|
||||
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.codeInspection.LocalInspectionTool;
|
||||
import com.intellij.codeInspection.unusedSymbol.UnusedSymbolLocalInspection;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class RemoveUnusedVariableTest extends LightQuickFixTestCase {
|
||||
public class RemoveUnusedVariableTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class ReplaceAddAllArrayToCollectionsFixTest extends LightQuickFixTestCase {
|
||||
public class ReplaceAddAllArrayToCollectionsFixTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception {
|
||||
doAllTests();
|
||||
}
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
import com.intellij.JavaTestUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class ReplaceImplementsWithStaticImportTest extends LightQuickFixTestCase {
|
||||
public class ReplaceImplementsWithStaticImportTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected String getTestDataPath() {
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class ReplaceInaccessibleFieldWithGetterSetterFixTest extends LightQuickFixTestCase {
|
||||
public class ReplaceInaccessibleFieldWithGetterSetterFixTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
|
||||
+8
-1
@@ -15,12 +15,19 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class ReplacePrimitiveWithBoxedTypeTest extends LightQuickFix15TestCase {
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
public class ReplacePrimitiveWithBoxedTypeTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@Override
|
||||
protected String getBasePath() {
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/replacePrimitiveWithBoxed";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ package com.intellij.codeInsight.daemon.quickFix;
|
||||
/**
|
||||
* @author Danila Ponomarenko
|
||||
*/
|
||||
public class ReplaceWithListAccessTest extends LightQuickFixTestCase {
|
||||
public class ReplaceWithListAccessTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ import com.intellij.codeInspection.dataFlow.DataFlowInspection;
|
||||
import com.intellij.codeInspection.nullable.NullableStuffInspection;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class ReplaceWithTernaryOperatorTest extends LightQuickFixTestCase {
|
||||
public class ReplaceWithTernaryOperatorTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
|
||||
public class ReuseVariableDeclarationTest extends LightQuickFixTestCase {
|
||||
public class ReuseVariableDeclarationTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ import com.intellij.codeInspection.PossibleHeapPollutionVarargsInspection;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
public class SafeVarargsCanBeUsedTest extends LightQuickFixTestCase {
|
||||
public class SafeVarargsCanBeUsedTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
//todo test3 should be checked if it compiles - as now javac infers Object instead of String?!
|
||||
public class Simplify2DiamondInspectionsTest extends LightQuickFixTestCase {
|
||||
public class Simplify2DiamondInspectionsTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
+8
-1
@@ -1,6 +1,8 @@
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class StaticImportMethodTest extends LightQuickFix15TestCase {
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
public class StaticImportMethodTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception { doAllTests(); }
|
||||
|
||||
@@ -8,4 +10,9 @@ public class StaticImportMethodTest extends LightQuickFix15TestCase {
|
||||
protected String getBasePath() {
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/staticImportMethod";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-2
@@ -1,9 +1,8 @@
|
||||
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
|
||||
|
||||
public class SuperMethodReturnTest extends LightQuickFixTestCase {
|
||||
public class SuperMethodReturnTest extends LightQuickFixParameterizedTestCase {
|
||||
|
||||
public void test() throws Exception {doAllTests();}
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ import com.intellij.codeInspection.unusedSymbol.UnusedSymbolLocalInspection;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
public class Suppress15InspectionsTest extends LightQuickFixTestCase {
|
||||
public class Suppress15InspectionsTest extends LightQuickFixParameterizedTestCase {
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
|
||||
+3
-5
@@ -1,4 +1,3 @@
|
||||
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.codeInspection.LocalInspectionTool;
|
||||
@@ -7,11 +6,10 @@ import com.intellij.openapi.roots.LanguageLevelProjectExtension;
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class SuppressLocalInspectionTest extends LightQuickFixTestCase {
|
||||
public class SuppressLocalInspectionTest extends LightQuickFixParameterizedTestCase {
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
LanguageLevelProjectExtension.getInstance(getProject()).setLanguageLevel(LanguageLevel.JDK_1_3);
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_3;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
+3
-6
@@ -1,4 +1,3 @@
|
||||
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
import com.intellij.codeInspection.LocalInspectionTool;
|
||||
@@ -14,12 +13,10 @@ import com.intellij.pom.java.LanguageLevel;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
|
||||
public class SuppressNonInspectionsTest extends LightQuickFixTestCase {
|
||||
|
||||
public class SuppressNonInspectionsTest extends LightQuickFixParameterizedTestCase {
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
LanguageLevelProjectExtension.getInstance(getProject()).setLanguageLevel(LanguageLevel.JDK_1_3);
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_3;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
+8
-1
@@ -20,7 +20,9 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon.quickFix;
|
||||
|
||||
public class SurroundWithArrayFixTest extends LightQuickFix15TestCase {
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
|
||||
public class SurroundWithArrayFixTest extends LightQuickFixParameterizedTestCase {
|
||||
public void test() throws Exception {
|
||||
doAllTests();
|
||||
}
|
||||
@@ -29,4 +31,9 @@ public class SurroundWithArrayFixTest extends LightQuickFix15TestCase {
|
||||
protected String getBasePath() {
|
||||
return "/codeInsight/daemonCodeAnalyzer/quickFix/surroundWithArray";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected LanguageLevel getLanguageLevel() {
|
||||
return LanguageLevel.JDK_1_5;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ import com.intellij.codeInspection.LocalInspectionTool;
|
||||
import com.intellij.codeInspection.dataFlow.DataFlowInspection;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class SurroundWithIfFixTest extends LightQuickFixTestCase {
|
||||
public class SurroundWithIfFixTest extends LightQuickFixParameterizedTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LocalInspectionTool[] configureLocalInspectionTools() {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user